[issue27263] IDLE sets the HOME environment variable breaking scripts

Jarrod Petz report at bugs.python.org
Tue Jun 7 23:43:12 EDT 2016


Jarrod Petz added the comment:

Worked around this by setting HOME to be USERPROFILE before IDLE starts

Rather then change the system/user environment permanently. I edited the Idle script which the windows shortcut seems to run below.

C:\Python35\Lib\idlelib\idle.pyw

At the top of the script I added
------------------------------------
import os
os.environ['HOME'] = os.environ['USERPROFILE']
------------------------------------

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27263>
_______________________________________


More information about the Python-bugs-list mailing list