Linux & exécutable

Nicola Mingotti nicola-mingotti_NOSPAM at libero.it
Tue Aug 5 07:57:45 EDT 2003


On Mon, 04 Aug 2003 16:52:33 +0200, habermacher wrote:

> Bonjour,
> 
> Est-ce que quelqu'un sait quel est le logiciel à utiliser sous linux
> pour créer un exécutable correspondant à du code source en python ?
> 
> Je vous remercie par avance de vos réponses.
> 
> 	Emilie.

If you only want to start you app. as if it was
a Linux command follow this :

- suppose your source code is 'foo.py'
- suppose your python interpreter is in '/usr/bin/python'
  ( you can see it doing '$> whereis python' )

then : 

1) put as first line of your file 'foo.py'
   the line '#!/usr/bin/python'
2) from you terminal '$> chmod +x foo.py '

try it with '$>./foo.py'

bye .

Nico




More information about the Python-list mailing list