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

Update python script shebang line to python3 #1336

Open
wants to merge 3 commits into
base: grass8
Choose a base branch
from

Conversation

cwhite911
Copy link
Contributor

Updated python script shebang to enforce python3 instead of python.

@wenzeslaus
Copy link
Member

We went through these switches several times. What is the current practice? What do the distros want?

@cwhite911
Copy link
Contributor Author

What I've always thought was use python3 if you want to be explicit about not running python2.

@echoix
Copy link
Member

echoix commented Feb 20, 2025

@cwhite911
Copy link
Contributor Author

So it looks like #!/usr/bin/env python3 is the recommended version.

@echoix
Copy link
Member

echoix commented Feb 21, 2025

Also, it should only be for files intended to be run as scripts directly. Library code, imported, shouldn't be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants