Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permit import of .pyw under Linux #98326

Open
SmartAudioTools opened this issue Oct 16, 2022 · 0 comments
Open

Permit import of .pyw under Linux #98326

SmartAudioTools opened this issue Oct 16, 2022 · 0 comments
Labels
topic-importlib type-feature A feature request or enhancement

Comments

@SmartAudioTools
Copy link

SmartAudioTools commented Oct 16, 2022

Feature or enhancement

To allow under Linux the execution of a script written under Windows, importing modules, some of which have the .pyw file extension, it would be useful to allow linux to import the .pyw files.

Pitch

Sometimes you want to run under linux a script written under windows which import modules, some having the file extension ".pyw". Today, we are forced to rename all pyw files to py to switch from Windows to Linux. But this is not always desirable, if you use a third party script or if you work cooperatively on a project, with developers under Windows and Linux. Moreover, there is no solution to recognize the py files to be renamed to pyw when you want to switch back to Windows.

Previous discussion

Importing .pyw files has been discussed here :
https://mail.python.org/pipermail/patches/2001-August/005411.html
And it is mentioned that "with slight modification, it could
permit the extension on any platform if desired"

Another discussion on the subject :
https://stackoverflow.com/questions/21386094/importing-pyw-files-as-modules-under-linux

@SmartAudioTools SmartAudioTools added the type-feature A feature request or enhancement label Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-importlib type-feature A feature request or enhancement
2 participants