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, r.david.murray, themetman
Date 2015-08-31.20:18:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441052316.09.0.519697318281.issue24971@psf.upfronthosting.co.za>
In-reply-to
Content
erykson's example works perfectly.
I have a script as follows

#!/bin/python
#
import os
cmd = os.environ.get('XRIT_DECOMPRESS_PATH')
print cmd

resulting in 'None'

and if I substitute this line
cmd = os.environ.get('PATH')

resulting in '/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4:/usr/include/KDE'

however from the bash prompt
$ echo $XRIT_DECOMPRESS_PATH
results in '/usr/local/bin/xRITDecompress' so the environment variable  is there and available in bash, but not in Python.
I find this very strange
History
Date User Action Args
2015-08-31 20:18:36themetmansetrecipients: + themetman, r.david.murray, eryksun
2015-08-31 20:18:36themetmansetmessageid: <1441052316.09.0.519697318281.issue24971@psf.upfronthosting.co.za>
2015-08-31 20:18:36themetmanlinkissue24971 messages
2015-08-31 20:18:35themetmancreate