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 Jarrod Petz
Recipients Jarrod Petz
Date 2016-06-08.02:24:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465352687.77.0.957460905896.issue27263@psf.upfronthosting.co.za>
In-reply-to
Content
It seems IDEL is setting the environment variable 'HOME' on windows. Specifically I am on windows 8.1

This is extremly annoying and bad as according the code and doco, os.path.expanduser will preference this variable above others such as USERPROFILE.
https://docs.python.org/3/library/os.path.html#os.path.expanduser

This is causing scripts/libraries and in my case the AWS SDK boto3/botocore modules to break. As they are looking for config files in the users home location using os.path resolution order which should be %USERPROFILE% in my case as I don't have HOME set. But because idle is setting HOME to what looks to be my HOMEPATH and HOMEDRIVE this is making the AWS SDK unable to pickup the credential files required.

path = "~/.aws/credentials"
print(os.path.expanduser(path))

Should be
C:\Users\myUserName/.aws/credentials

But is instead
H:\/.aws/credentials

Please stop IDLE from setting this environment variable. Running the same scripts with python.exe or pythonw.exe works fine.
History
Date User Action Args
2016-06-08 02:24:47Jarrod Petzsetrecipients: + Jarrod Petz
2016-06-08 02:24:47Jarrod Petzsetmessageid: <1465352687.77.0.957460905896.issue27263@psf.upfronthosting.co.za>
2016-06-08 02:24:47Jarrod Petzlinkissue27263 messages
2016-06-08 02:24:46Jarrod Petzcreate