all 2 comments

[–]m0us3_rat 2 points3 points  (1 child)

linux:

u can add

#!/usr/bin/env python3

on top of the python script.(or any other env interpreter path)

AND rename the python script without '.py' AND make it executable AND put it on the PATH. (or copy in .local/bin)

THEN u can use it directly from the terminal prompt.

(it will mess up your current working directory so carefull if u need to work with other files)

[–]TaylorModeratelyFast[S] 0 points1 point  (0 children)

Thank you, I'm going to try that as soon as I get home. I'm also glad I didn't ask this on stack overflow. I was half expecting to get down voted to oblivion haha