Vanilla python path

N

Neil Benn

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 : (e-mail address removed)
Cenix Website : http://www.cenix-bioscience.com
 

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,596
Members
45,141
Latest member
BlissKeto
Top