Message389630
> if sys.stdout is None and no file in sys.argv
With the app distribution from the Microsoft Store, "idle3.x.exe" is a GUI executable that runs idlelib. There isn't a console version. Also, GUI scripts are usually run with the pyw.exe launcher or pythonw.exe, e.g. `pyw -m idlelib`, to ensure it's not attached to a console session. Otherwise the shell waits for a console app such as py.exe, which blocks the console. Moreover, when a console session is closed, all processes attached to it have 5 seconds to exit before they get terminated. I generally don't want either behavior with a GUI app, except for the case of debugging an application that writes debug output to standard error or standard output. On the other hand, I generally do want to inherit the working directory of the parent process, such as a command-line shell.
I think the problem would be adequately addressed by blacklisting directories that are known to be inappropriate and a common problem, such as sys.prefix and Windows system directories. I agree with the suggestion to automatically change the working directory in such cases to the user's "Documents" directory, i.e. FOLDERID_Documents. |
|
Date |
User |
Action |
Args |
2021-03-28 05:34:18 | eryksun | set | recipients:
+ eryksun, rhettinger, terry.reedy, andyharrington, mark, ned.deily, serhiy.storchaka, jeff.allen, steve.dower |
2021-03-28 05:34:18 | eryksun | set | messageid: <1616909658.62.0.767475372175.issue22121@roundup.psfhosted.org> |
2021-03-28 05:34:18 | eryksun | link | issue22121 messages |
2021-03-28 05:34:17 | eryksun | create | |
|