m...@pixar.com wrote: > Benjamin Peterson <benja...@python.org> wrote: >> #!/usr/bin/env python > > But how can I handle this with two differently named pythons? > > #!/usr/anim/menv/bin/pypix > #!/Users/mh/py/bin/python > > Thanks! > Mark >
If you install using with a setup.py that uses distutils then one of the features is that any script whose first line begins '#!' and contains 'python' has that first line replaced by the current interpreter. So in this example if you install your code with: /usr/anim/menv/bin/pypix setup.py install "#!/usr/bin/env python" would be replaced by your desired "#!/usr/anim/menv/bin/pypix". Of course for your current purposes using setup.py might be overkill. -- http://mail.python.org/mailman/listinfo/python-list