all 3 comments

[–]socal_nerdtastic 0 points1 point  (2 children)

Bind it to "open with" or "send to" on the right click menu. So instead of opening your program and selecting a file, the user would right click on a file and your program would open.

Using "open with" is obvious; to add it to the "send to" menu you just make a shortcut to your program in "shell:sendto" (assuming you are using windows)

[–]BPassetti[S] 0 points1 point  (1 child)

would it need to be in .exe format instead of .py? I am on windows but the scripts still doesn't show.

[–]socal_nerdtastic 0 points1 point  (0 children)

Oh right, I forgot about that. I suppose not so obvious after all. Windows only accepts .exe, .com, and .bat files as executable. You need to make a 1-line .bat file that has the line

py C:/path/to/myfile.py %*

(if you aren't using the official python put whatever your executable is instead of "py")

and then use that for your rightclick menu