RE: site.here on python 2.4

2005-01-13 Thread Tony Meyer
> can we assume that, on all platforms, the old site.here is > the same as: > > >>> os.path.join(sys.prefix, 'lib', 'python%s' % sys.version[:3]) > '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ > python2.3' > > or is it better to use, as you suggest, > > >>> import os > >>> os.

Re: site.here on python 2.4

2005-01-13 Thread ariza
i am not sure where i found site.here documented as used prior to 2.4. the issue is that i do not need sys.path, as in the list of all paths that python searches. sys.prefix is close to what i need: >>> sys.prefix '/System/Library/Frameworks/Python.framework/Versions/2.3' but the old site.here

Re: site.here on python 2.4

2005-01-13 Thread Fredrik Lundh
"ariza" <[EMAIL PROTECTED]> wrote: > greetings. it seems that the attribute site.here, of the site module, > has vanished in python 2.4. up until python 2.3, site.here seemed (to > me at least) a convenient way to get the complete path to the python > library on any platform. "here" was a tempor