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

Associate .py with python on Windows #900

Open
Wovchena opened this issue Jun 24, 2024 · 1 comment
Open

Associate .py with python on Windows #900

Wovchena opened this issue Jun 24, 2024 · 1 comment
Labels
feature request New feature or request to improve the current logic

Comments

@Wovchena
Copy link

Wovchena commented Jun 24, 2024

Description:
Associate .py with python on Windows when running actions/setup-python@v4

Justification:
I want to test that my .py have executable permission set relying on shebang line. That passes on Ubuntu. Windows doesn't care about file permissions set by git, but it has a different mechanism:
https://docs.python.org/3/faq/windows.html#how-do-i-make-python-scripts-executable

On Windows, the standard Python installer already associates the .py extension with a file type (Python.File) and gives that file type an open command that runs the interpreter (D:\Program Files\Python\python.exe "%1" %*).

and https://docs.python.org/3/using/windows.html#from-file-associations:

The launcher should have been associated with Python files (i.e. .py, .pyw, .pyc files) when it was installed.

Apparently that doesn't happen when using actions/setup-python@v4

Are you willing to submit a PR?
No

@Wovchena Wovchena added feature request New feature or request to improve the current logic needs triage labels Jun 24, 2024
@aparnajyothi-y
Copy link
Contributor

Hello @Wovchena, Thank you for creating the issue and we will get back to you once we have some feedback on this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request to improve the current logic
Projects
None yet
Development

No branches or pull requests

2 participants