Message267794
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 |
|
Date |
User |
Action |
Args |
2016-06-08 05:53:27 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, Jarrod Petz |
2016-06-08 05:53:26 | eryksun | set | messageid: <1465365206.92.0.511503830706.issue27263@psf.upfronthosting.co.za> |
2016-06-08 05:53:26 | eryksun | link | issue27263 messages |
2016-06-08 05:53:26 | eryksun | create | |
|