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 eryksun
Recipients Jarrod Petz, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-06-08.05:53:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465365206.92.0.511503830706.issue27263@psf.upfronthosting.co.za>
In-reply-to
Content
This affects all Tkinter applications on Windows. For example, in Python 2.7:

    import Tkinter
    import ctypes
    libc = ctypes.CDLL('msvcr90')
    libc.getenv.restype = ctypes.c_char_p

    >>> libc.getenv(b"HOME")
    >>> root = Tkinter.Tk()
    >>> libc.getenv(b"HOME")
    'C:\\Users\\me'

TCL sets this environment variable in TclpSetVariables [1] and has since 1995 [2]. I don't think IDLE or any other Tkinter application should necessarily favor %USERPROFILE% over %HOMEDRIVE%%HOMEPATH%, and the default shouldn't be changed at this point. Probably the behavior should be documented for Tkinter and IDLE.

[1]: https://github.com/tcltk/tcl/blob/core_8_6_4/win/tclWinInit.c#L502
[2]: https://github.com/tcltk/tcl/blob/core_8_6_4/changes#L1378
History
Date User Action Args
2016-06-08 05:53:27eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, Jarrod Petz
2016-06-08 05:53:26eryksunsetmessageid: <1465365206.92.0.511503830706.issue27263@psf.upfronthosting.co.za>
2016-06-08 05:53:26eryksunlinkissue27263 messages
2016-06-08 05:53:26eryksuncreate