Message249419
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'
?? |
|
Date |
User |
Action |
Args |
2015-08-31 18:41:14 | themetman | set | recipients:
+ themetman, eryksun |
2015-08-31 18:41:14 | themetman | set | messageid: <1441046474.83.0.725133306829.issue24971@psf.upfronthosting.co.za> |
2015-08-31 18:41:14 | themetman | link | issue24971 messages |
2015-08-31 18:41:14 | themetman | create | |
|