I’m trying to make a small Python script that is executed by clicking an option in a file’s context menu. It would execute something like “path_to_script %L”, where %L is (I think) the location of the file the user has right-clicked. I know I have to add something to the registry for that option to appear, but _winreg is getting confusing. What do I have to do to add a registry entry (through Python) so my script can be called like that?
Share
I dont know how you can remove from registry (probably manually or _winreg) but you can follow a way like that per your custom python script to registration to windows.
registerOne.reg
one.py