|
Python on unix
Is there a way to get a Python script to run from the command line in Unix without the "python" prefix? For example, instead of typing python myscript.py, typing myscript.py (with or without the ./)?
I know that Perl scripts can be run by simply typing the script name (assuming you are in the enclosing directory).
I tried adding a shebang line to my Python script no avail.
EDIT: I figured it out. I had to chmod the script to 777.
|