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 terry.reedy
Recipients Jarrod Petz, docs@python, eryksun, markroseman, paul.moore, serhiy.storchaka, steve.dower, terry.reedy, tim.golden, zach.ware
Date 2016-06-14.01:11:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465866689.49.0.20471560476.issue27263@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-06-14 01:11:29terry.reedysetrecipients: + terry.reedy, paul.moore, tim.golden, markroseman, docs@python, zach.ware, serhiy.storchaka, eryksun, steve.dower, Jarrod Petz
2016-06-14 01:11:29terry.reedysetmessageid: <1465866689.49.0.20471560476.issue27263@psf.upfronthosting.co.za>
2016-06-14 01:11:29terry.reedylinkissue27263 messages
2016-06-14 01:11:29terry.reedycreate