Francis Greaves added the comment:

I have the environment variable in my .bashrc file.
Interestingly if I do 'os.environ.get("PATH")' it returns the correct value for 
$PATH. This is also defined in my .bashrc file, so it should be exported.
I have exported it manually from the command line, but it makes no difference.
The command is in a .py file run as 'python myscript.py' as follows
import os
cmd=os.environ.get("PATH")

this makes cmd as 'None'
??

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24971>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to