Issue 36516: Python Launcher can not recognize pyw file as Python GUI Script file type correctly. (original) (raw)

Created on 2019-04-03 06:27 by gjj2828, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 12672 open gjj2828,2019-04-03 09:18
Messages (4)
msg339380 - (view) Author: Jiongjiong Gao (gjj2828) * Date: 2019-04-03 06:27
In Python Launcher Preferences there are two settings for file type, Python Script and Python GUI Script. But Python Launcher can not recognize pyw file as Python GUI Script file type correctly.
msg362912 - (view) Author: Erlend E. Aasland (erlendaasland) * (Python triager) Date: 2020-02-28 19:54
I might have missed something, but I thought .pyw files were a Windows specific thing.
msg362932 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2020-02-28 22:47
Thanks for the PR. I believe there also used to be a distinction between .py and .pyw files back in the distant past of classic MacOS (9 and earlier) and limited support for .pyw was carried over into Mac OS X (10). But most of the references to .pyw for macOS have been removed over the years other than, it seems, here in Python Launcher.app. There are other more basic concerns with the Launcher app so I have been holding off on merging this change for 3.9. I plan to make a decision about its fate by the end of the PyCon sprints in April.
msg362967 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2020-02-29 08:07
I'm fairly sure support for .pyw, or rather a separate python executable, was introduced in the MacOSX port. In particular, we started out with two different executables "python" and "pythonw" where the first was the regular python executable, while the second did the "launch executable in Python.app" dance to support GUI code from the command-line. This was changed later on to always use the executable from Python.app. P.S. I still think Python Launcher is worrisome from a security standpoint (#5262).
History
Date User Action Args
2022-04-11 14:59:13 admin set github: 80697
2020-02-29 08:07:57 ronaldoussoren set messages: +
2020-02-28 22:47:05 ned.deily set messages: +
2020-02-28 19:54:02 erlendaasland set nosy: + erlendaaslandmessages: +
2020-01-10 22:37:20 cheryl.sabella set versions: + Python 3.9, - Python 3.7
2019-04-03 09🔞15 gjj2828 set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest12600>
2019-04-03 06:27:07 gjj2828 create