compile shebang into pyc file

Joerg Schuster joerg.schuster at gmail.com
Wed Apr 27 11:43:02 EDT 2005


> #!/usr/bin/env python
> import app

Yes, of course this is a possibility. But it implies having (or giving
away) two files.

I think having one file is always better than having two files. Because
if you have two files, you need a third one: a README that tells you
what to do with the two files and that one of the files must either be
in $PYTHONPATH, or in the same directory as the other one and '.' must
be in your $PYTHONPATH , and so on. Actually, some people will also
need a fourth file: One that contains an explanation of terms like
"$PYTHONPATH" and the like. 

Jörg




More information about the Python-list mailing list