[issue7936] sys.argv contains only scriptname

2011-01-13 Thread Bill Hayes
Bill Hayes bhaye...@yahoo.com added the comment: I finally found a solution from a page on StackOverflow. I had to add the two characters %* to the end of the Data value for the Windows registry key: HKEY_CLASSES_ROOT\Applications\python.exe\shell\open\command So the Data value is now: C

[issue7936] sys.argv contains only scriptname

2010-09-14 Thread Bill Hayes
Bill Hayes bhaye...@yahoo.com added the comment: I found this page while encountering the same problem (only one argument, the scriptname, being passed in from the command line), and wanted to post the following workaround. I'm running Vista and using Python 2.6. In summary I had to have