Are rank noobs tolerated, here?
Jeffrey Froman
jeffrey at fro.man
Tue May 6 14:15:04 EDT 2008
notbob wrote:
> Do python scripts require the:
>
> #!/usr/bin/env python
An appropriate shebang is required if you intend to use the module itself as
a script, from the command line, like:
$ ./my_module.py argument argument ...
It is not required merely to import the module into a python program or
interpreter. Even without the shebang, the module can be run indirectly
with:
$ python ./my_module.py argument argument ...
or, if the module is somewhere on your sys.path:
$ python -m my_module argument argument ...
Jeffrey
More information about the Python-list
mailing list