Can't run python file without .py extension even after adding shebang

119 Views Asked by At

Couldn't get my python script to execute without .py extension even after adding #!/usr/bin/python3 to the script but the shebang works because i could execute the script without python keyword but i also need the .py extension out, i need the it to work like a cli keyword like git,is there a way to accomplish this on windows without adding the path to environment variables?

0

There are 0 best solutions below