On 24-Jun-05, at 7:25 AM, Mario Ruggier wrote:
> Another annoying thing is the path change for site-packages -- tiger
> now expects now that "site-packages" be appended to the panther
> version
> of the same location... ;-(
I use a script to tell me where site-packages is. Save this as
"pyext" for example and you can do things like
>>> ls `pyext`
and tab-completion works fine with that in Bash. If you need to find
the site-packages for a specific python, then just run it as
>>> /usr/local/bin/python pyext.py
assuming you call it "pyext.py" in that case...
================= pyext script ================
#!/usr/bin/env python
import sys
for p in sys.path:
if p.endswith('site-packages'):
print p
sys.exit()
================ end script =================
It's not particularly elegant, but I find it useful (and not just on
OS X).
--Dethe
Life is extinct on other planets. Their scientists were more
advanced than ours. --Mark Russell
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig