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 dd789, ned.deily, ronaldoussoren, terry.reedy
Date 2020-03-11.06:25:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583907914.41.0.969654426885.issue39927@roundup.psfhosted.org>
In-reply-to
Content
Ned> we should be able to catch an exception when IDLE tries to set the working directory to Documents.

If IDLE did that, then I would consider the silent exit an IDLE bug.  However, IDLE only calls os.chdir, when running a user script, in the user process, to change to the script directory, so imports work as expected.  (In other words, to imitate what Python does.)  There are only proposals, #22121 and #28775, to IDLE itself to change IDLE's working directory when starting.

I presume a. that the switch results from how Python and IDLE are installed and how the icon is configured and b. that it happens before the first IDLE code is executed.  If so, there is nothing IDLE can do.
History
Date User Action Args
2020-03-11 06:25:14terry.reedysetrecipients: + terry.reedy, ronaldoussoren, ned.deily, dd789
2020-03-11 06:25:14terry.reedysetmessageid: <1583907914.41.0.969654426885.issue39927@roundup.psfhosted.org>
2020-03-11 06:25:14terry.reedylinkissue39927 messages
2020-03-11 06:25:14terry.reedycreate