Message 363984 - Python tracker

Message363984

Author terry.reedy
Recipients dd789, ned.deily, ronaldoussoren, terry.reedy
Date 2020-03-11.23:17:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583968664.05.0.0221226616076.issue39927@roundup.psfhosted.org>
In-reply-to
Content
idlemain.py should be documented within idlelib* (I will do that, README.txt and maybe macosx.py).  Currently, the chdir is only part of idle.app, not idle on Mac, because it does not happen when starting IDLE in Terminal.  This is confusing.  As near as I can tell, it is not needed in idlemain.py.  If so, it should be moved (revised) into idlelib startup code so it always runs on Mac.  How about something like:

try:
    os.chdir(os.path.expanduser('~/Documents'))
except OSError:  # I presume
    <display tk  message box: cannot access Documents, explain how to change>
    os.chdir(os.path.expanduser('~'))  # Can this fail?

* The only mention of 'IDLE.app' in idlelib is in the news item for #27310, where you mention 'idlemain.py', sans path.
History
Date User Action Args
2020-03-11 23:17:44terry.reedysetrecipients: + terry.reedy, ronaldoussoren, ned.deily, dd789
2020-03-11 23:17:44terry.reedysetmessageid: <1583968664.05.0.0221226616076.issue39927@roundup.psfhosted.org>
2020-03-11 23:17:44terry.reedylinkissue39927 messages
2020-03-11 23:17:43terry.reedycreate