Unix/Linux file systems do not rely on extensions the way windows does. You should not need the
.py at the end of a file to run it.
You can run the file by either calling it with the interpreter:
Or by marking it executable and defining the interpreter on the first line (e.g.
If you are unable to execute the file with:
check the permissions with
ls -l ScriptFile
You may need to add the executable flag and
chmod it so it will execute for you.
If you are using custom scripts regularly you may want to make sure the directory you store them is added to the
PATH environment variable.