Terry J. Reedy added the comment: How about wrapping the appropriate tkinter code with (untested yet)
import os HOME = os.environ['HOME'] try: <run tkinter> finally" os.environ['HOME'] = HOME # will this unset? or use a restore_env('HOME', ...) context manager? Revising os.expanduser or apps to ignore HOME while tk is running is a related but different issue. ---------- _______________________________________ 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