Last active
November 9, 2021 05:07
-
-
Save SteveBarnes-BH/ab9d0746dedaab4c4cc68725ddaa1356 to your computer and use it in GitHub Desktop.
Check the python registry keys to ensure parameters are passed to python when .py files are invoked
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo OFF | |
REM This file queries the registry to see if python files are going to be provided with parameters | |
REM when called by invoking as <filename>.py | |
reg query HKEY_CLASSES_ROOT\.py_auto_file\shell\open\command | |
reg query HKEY_CLASSES_ROOT\Applications\py.exe\shell\open\command | |
reg query HKEY_CLASSES_ROOT\Python.File\shell\open\command | |
echo ALL the above values should end with "%%1" %%* if they don't then you will need to use regedit to fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment