I'm trying to run a Python script from the command line in Windows 7, but the interpreter seems to ignore all commend line arguments. It does not do so when I run the command as
python C:\PathToScript\script.py arg1
or when I launch the terminal with Administrator permissions. It used to work normally until I had to reinstall Python (2.7.2), so I've probably managed to break some file association for standard users. The solutions in Python Command Line Arguments (Windows) do not work for me, as the registry entry is already set up with %*:
Key Name: HKEY_CLASSES_ROOT\Applications\python.exe\shell\open\command
Class Name: <NO CLASS>
Last Write Time: 3/04/2012 - 14:19
Value 0
Name: <NO NAME>
Type: REG_SZ
Data: "C:\Python27\python.exe" "%1" %*
It's not a major problem, but I've gotten used to just shift+clicking in a directory and opening a terminal there, whereas I now have to run an elevated cmd prompt, type the Administrator account name and password and navigate to the right folder in order to run the script properly. Does anyone know where I can find this user specific file association or if there's another way to solve this?