New submission from Jarrod Petz: 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. ---------- components: IDLE messages: 267761 nosy: Jarrod Petz priority: normal severity: normal status: open title: IDLE sets the HOME environment variable breaking scripts type: behavior versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27263> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com