Message292546
I and others constantly tell people to start IDLE from the command line when they have a problem. Today, someone actually followed the advice and the traceback revealed that the problem was a personal tkinter.py masking the stdlib file! Renaming it to mytkinter.py fixed the problem. This tell me that 'fixing' sys.path for the idle process must be done immediately after importing sys and before importing tkinter. In the user process, the sys import should again be first, followed by the fixup.
I have verified that a user 'sys.py' does not mask sys imports. Python itself imports sys, so IDLE's 'import sys' just gets the existing sys.modules['sys']. |
|
Date |
User |
Action |
Args |
2017-04-28 19:19:20 | terry.reedy | set | recipients:
+ terry.reedy, mdcowles |
2017-04-28 19:19:20 | terry.reedy | set | messageid: <1493407160.33.0.0608054315655.issue26143@psf.upfronthosting.co.za> |
2017-04-28 19:19:20 | terry.reedy | link | issue26143 messages |
2017-04-28 19:19:20 | terry.reedy | create | |
|