problem with pythonwin32
Peter Hansen
peter at engcorp.com
Sun Aug 26 21:39:03 EDT 2001
Paul Greer wrote:
>
> Might sound like a silly question but how do I get a script to run as a
> program from an Icon on windows. When ever I do the DOS box opens and
> immediately closes.
Rename script with extension .pyw instead of .py. Or create shortcut
to pythonw.exe and add your script as parameter to icon.
> the same in linux I change the py file with chmod -x and set the path but i
> cant seem to get the program to run by just typing the name?
Add as first line:
#!/usr/bin/python
...or the equivalent path for your system.
--
----------------------
Peter Hansen, P.Eng.
peter at engcorp.com
More information about the Python-list
mailing list