Re: problem with pythonwin32
by Peter Hansen other posts by this author
Aug 27 2001 1:39AM messages near this date
Re: problem with pythonwin32
|
Re: problem with pythonwin32
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@[...].com
--
http://mail.python.org/mailman/listinfo/python-list
Thread:
Paul Greer
Gillou
Richard Jones
Maan Hamze
Peter Hansen
John Roth
|