469,648 Members | 1,527 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,648 developers. It's quick & easy.

Vanilla python path

Hello,

I'm attempting to determine what paths I would need on a
win32, Linux, OSX box to run python. This should be a vanilla python
with no extra packages (including tk). The paths I have beneath are
what I think I need, excluding the lib\site-packages entry.
The questions that I have are two fold:

1. Is this correct does anyone know if there is something I've missed out?
2. Does python _need_ the <platform-specific-stuff>/lib/sitepackages
directory in sys.path or will it simply be happy enough if it is not there?

FYI, I intend to rebuild the paths after this so that I can point
python to load required packages and libraries from any location I wish
- probably by passing the path as an option to the start script and also
the location of the module which will do the reassembling of the python
path. This module will be loaded by sitecustomise.py - the reason that
sitecustomise.py will not do this itself is that it is automatically a
client based file and would require updating on the client - thereby
requiring work to maintain the clients.

Thanks, in advance for your help, here are the 'vanilla' python
paths that I can see - obviously I am aware that the path will change on
the system according to where you install python on the box :
------

LINUX

['', '/usr/lib/python23.zip', '/usr/lib/python2.3',
'/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-dynload']

WIN32

['', 'C:\\WINDOWS\\system32\\python23.zip', 'C:\\Python23',
'C:\\Python23\\DLLs', 'C:\\Python23\\lib', 'C:\\Python23\\lib\\plat-win']

OSX

['',
'/Library/Frameworks/Python.framework/Versions/2.3/lib/python23.zip',
'/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3',
'/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-darwin',
'/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac',
'/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages',
'/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload']

-----

Cheers,

Neil

--

Neil Benn
Senior Automation Engineer
Cenix BioScience
BioInnovations Zentrum
Tatzberg 47
D-01307
Dresden
Germany

Tel : +49 (0)351 4173 154
e-mail : be**@cenix-bioscience.com
Cenix Website : http://www.cenix-bioscience.com

Jul 25 '05 #1
0 1339

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

699 posts views Thread by mike420 | last post: by
2 posts views Thread by Jorgen Grahn | last post: by
5 posts views Thread by Michael Sperlle | last post: by
6 posts views Thread by Lex Hider | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.