Sublime没有看到环境变量 [英] Sublime does not see env variables
本文介绍了Sublime没有看到环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从desctop运行sublime时,看不到我的PERL5LIB环境变量. 从终端运行时,一切正常. 我在.bashrc和.bash_profile中设置了变量.
When running sublime from desctop it does not see my PERL5LIB environment variable. When running it from terminal - everithing is OK. I set my variables in .bashrc and .bash_profile.
import os
>>> os.environ['SHELL']
'/bin/bash'
>>> os.environ['PERL5LIB']
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "./os.py", line 676, in __getitem__
KeyError: 'PERL5LIB'
这会给棉绒和构建系统带来麻烦-我无法链接和构建,因为perl看不到库.
this makes trouble with linting and build system - I can not link and build becase of perl does not see libraries.
如何修复环境变量?
推荐答案
查看全文