#! to two different pythons?

M

mh

I've got a bunch of python programs on linux that start with:

#!/usr/anim/menv/bin/pypix

Now I'm moving some to the mac, where I'm changing that to:

#!/Users/mh/py/bin/python

What's the best way to handle this? I've got an install script
that rewrites the first line, but if I could eliminate that step I
would be quite happy, since it's the only thing the install step
does.

TIA!!
Mark
 
M

mh

Benjamin Peterson said:
#!/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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,163
Latest member
Sasha15427
Top