There are python scripts with command line arguments that I'd like to call from any location on my PC.
The idea is to share the corresponding package with others so they can open up a CMD window and run
python thescript.py arg1 arg2
python: can't open file 'thescript.py': [Errno 2] No such file or directory
Python does not look up scripts on some sort of path.
You have 2 options:
Use the full path:
Place the script in a directory that is on your
PATH, make it executable (
chmod +x thescript.py) and give it a Shebang line: