I defined some command line tools of python (take mycmd.py as an example), and saved them in the folder ~/Scripts. Hence, I have to type (for example) python /Scripts/mycmd.py -o v. It is tedious to repeat the name of the folder /Scripts. I want to run the command only inputting python mycmd.py -o v, even without cd. How should I do? Add a path to the original one?
PS: in mac
Add the path to PYTHONPATH environment variable.
set path for command line of python (mac)