3 Respostas
+ 3
Not really, unless you set the current directory to the file that has your folder. From there you can just use myfilename.py
+ 3
In Linux, you can make your file executable and add the directory to your environment variables. I can't tell exactly how to do it from memory, but it works
0
On Windows you can add the directory to the environment with:
setx path "%path%;c:\DirWhereYourFileIs"
then you shuld be able to call your file directly from cmd without including its path