Terry J. Reedy <tjre...@udel.edu> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39927> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com