Creating Python "executables" on Windows?

Hrvoje Niksic hniksic at iskon.hr
Tue Aug 8 16:18:21 EDT 2000


Alan Gauld <alan.gauld at gssec.bt.co.uk> writes:

> > I have one problem, though: on Unix systems, it's very easy to
> > create a script that you can run as an executable by placing
> > "#!/usr/bin/python" (or the /usr/bin/env variant).  I wonder how
> > to do the same on Windows?
> 
> It happens automatically in the Python setup.
> 
> Look at the .py iles in exolorer and they should have 
> little snake icons.

They do.

> If so just double click on them to launch the program.
...
> If you need to provide args then thats harder, you'd need 
> to get the args by prompts using input/raw_input

This is a problem: the thing is, I am trying to write a small,
Unix-style program that processes its command-line arguments.  Reading
data with raw_input() would render it pretty much unusable.

I guess I'll have to go with the wrapper; thanks for your help.



More information about the Python-list mailing list