This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author themetman
Recipients eryksun, themetman
Date 2015-08-31.18:41:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441046474.83.0.725133306829.issue24971@psf.upfronthosting.co.za>
In-reply-to
Content
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'
??
History
Date User Action Args
2015-08-31 18:41:14themetmansetrecipients: + themetman, eryksun
2015-08-31 18:41:14themetmansetmessageid: <1441046474.83.0.725133306829.issue24971@psf.upfronthosting.co.za>
2015-08-31 18:41:14themetmanlinkissue24971 messages
2015-08-31 18:41:14themetmancreate