Terry J. Reedy added the comment:

As IDLE maintainer, this annoys me also. IDLE and in particular test_idle 
necessarily change the environment by calling tkinter.Tk().  When run under 
test.regrtest, test_idle gets slapped with a warning, and in 3.6, gets labelled 
a failure, even when it passes.

This issue cuts the other way too.  IDLE works for months and then stops 
working.  User posts "IDLE stopped working' on Stackoverflow.  In at least some 
cases, user installed a program that installed ab incompatible tcl/tk and set 
TCL_LIBRARY (which Python does not).  tk and tkinter get trapped by what for us 
is a bad setting.

Serhiy, could the _tkinter startup code recover from this and revert to using 
the one we installed?  Should I open a separate issue?

----------
components:  -IDLE
nosy: +serhiy.storchaka, terry.reedy
title: IDLE sets the HOME environment variable breaking scripts -> Tkinter sets 
the HOME environment variable, breaking scripts

_______________________________________
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

Reply via email to