ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved