[issue39927] IDLE.app fails to launch on macOS 10.15 if denied access to user's Document Folder

Terry J. Reedy report at bugs.python.org
Wed Mar 11 02:25:14 EDT 2020


Terry J. Reedy <tjreedy at udel.edu> added the comment:

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.

----------
assignee: terry.reedy -> 
components: +Installation, macOS -IDLE
nosy: +ronaldoussoren

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39927>
_______________________________________


More information about the Python-bugs-list mailing list