--- Nehemiah Dacres <[EMAIL PROTECTED]> wrote:
> Site packages is where the platform dependant
> libraries of Mac python
> reside. they should be in
> /Library/Python/site-packages/ and thats where
> platform specific libraries are installed. Python
> home im not sure of,
> PYTHONPATH is where the python interpreter lives, it
> is specific to the
[cut]
I don't think that's quite right. My site packages on
Mac OS X 10.4.9 are in the directory,
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/
I believe all Python installs beyond the
Apple-supplied 2.3 are in the Frameworks directory.
Then in my bash-shell .profile_login the lines were
automatically added when I installed Python 2.4.4,
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
which causes the latest (Current) Python version to be
launched rather than the Apple-supplied 2.3 one.
By the way if you have any modules of your own that
you would like to be automatically on the sys.path so
you can just import them in your scripts, you only
need to put a text file in the site-packages directory
(see above) which contains on each line the full path
to each of your modules' directories. You can name
the file anything, but it must have the extension
.pth . When you launch Python it will automatically
add your paths to the sys.path and you can just say
import mymodule # Import your file mymodule.py
Hope that helps.
-- Lou Pecora, my views are my own.
---------------
Great spirits have always encountered violent opposition from mediocre minds.
-Albert Einstein
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig