[Python-Dev] #! magic (was PEP: per user site-packages directory) (original) (raw)
Tristan Seligmann mithrandi-python-dev at mithrandi.za.net
Sun Jan 20 23:17:20 CET 2008
- Previous message: [Python-Dev] #! magic
- Next message: [Python-Dev] #! magic (was PEP: per user site-packages directory)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Oleg Broytmann <phd at phd.pp.ru> [2008-01-20 20:12:38 +0300]:
On Sun, Jan 20, 2008 at 06:00:31PM +0100, Christian Heimes wrote: > #!/usr/bin/env python -E -s
On most Unicies #! magic may have only one parameter after the program; the program here is env, the parameter is python, and that's all. Adding python options will result in different errors - some platforms silently ignores the options, some reports an error, some tries to find "python -E -s" in the PATH and report "Bad command or file name".
Distro tools shouldn't be using /usr/bin/env in any case. Does
#!/usr/bin/python -E -s
work?
mithrandi, i Ainil en-Balandor, a faer Ambar -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature Url : http://mail.python.org/pipermail/python-dev/attachments/20080121/f41a823b/attachment.pgp
- Previous message: [Python-Dev] #! magic
- Next message: [Python-Dev] #! magic (was PEP: per user site-packages directory)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]