[Tutor] how to make python program as executable
Michael Langford
michael.langford at rowdylabs.com
Wed Jan 30 15:32:57 CET 2008
On the command line type "which python"
Then at the top of your script put:
#!/usr/bin/python
or whatever path the which command outputted.
Then run chmod on the program:
chmod ugo+x script.py
then the following will work:
./script.py
If you actually want to build an executable that doesn't depend on the
presence of python, then this tutorial will help you:
http://wiki.python.org/moin/Freeze
--Michael
On Jan 30, 2008 9:11 AM, brindly sujith <brindly at gmail.com> wrote:
> i am using linux...
>
> plz tell me how to do it
>
>
>
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.RowdyLabs.com
More information about the Tutor
mailing list