Running a Python program thru a Windows shortcut
Patrick Useldinger
uselpa at myrealbox.com
Mon May 12 15:59:14 EDT 2003
TheDustbustr wrote:
> right click> new> shortcut
> command line:
> C:\python22\python.exe c:\path\to\dfc.py dfcCfgBackup
>
> remember, in python, sys.argv is a tuple containing args passed in.
>
> Depending on your windows version, you MAY have to put python in double-quotes,
> like so:
> "C:\python22\python.exe" c:\path\to\dfc.py dfcCfgBackup
My problem was that I put everything into the quotes...
As .py is associated with python.exe anyway, my shortcut is now:
"I:\My Programs\dfc\dfc.py" dfcCfgBackup
and "start in" points to "I:\My Programs\dfc"
Thanks to all.
-PU
More information about the Python-list
mailing list