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
chmod +x; requirements.txt #1
Comments
Thanks for the feedback. The shebang at the top of the file The
Which is already a one-liner. Since this is just a simple Python file and won't change much in the future, I feel a |
No, the shebang is only half of the puzzle. You need to ensure that the file is marked executable too, otherwise you get a permission denied error when you attempt to execute it like that.
True, but for the uninitiated its easier to tell them to |
Marking the file as executable is up to the person who downloads the file. I have no control over that. Concerning the |
By marking the script as executable (
chmod +x quad.py
), this enables one to do./quad.py blah
instead ofpython quad.py blah
.Additionally, I strongly recommend adding a
requirements.txt
file, with 1 pip package name per line. By defining one's dependencies this way, others can simply install them like so:(of course it varies slightly by platform, but the principle is the same)
The text was updated successfully, but these errors were encountered: