Having a __stdlib__ namespace? [__std__ package]
Daniel Yoo
dyoo at hkn.eecs.berkeley.edu
Sat Jan 11 17:30:17 EST 2003
More information about the Python-list mailing list
Sat Jan 11 17:30:17 EST 2003
- Previous message (by thread): Having a __stdlib__ namespace?
- Next message (by thread): Mail <-> News gateway not working?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Terry Hancock <hancock at anansispaceworks.com> wrote: : Just wrote: :> In article <mailman.1042189529.2441.python-list at python.org>, :> Lulu of the Lotus-Eaters <mertz at gnosis.cx> wrote: :> :>> It doesn't come "out of the box" this way, but you could easily create :>> your own directory on the import path that was a link to the actual :>> library path. And you could name it something like 'std' or '__std__'. :>> Once such a link was added, the OP's prefered import form will work. :> :> Or you can add a regular dir named "std" somewhere, which contains an :> __init__.py like this: :> :> __path__ = [<path-to-std-lib>] : Okay -- that should be portable across all platforms, so it's better than : the symlink. That's the way to do it -- no PEP needed (unless maybe to : include this in the standard distribution).. :-D I've packaged Just's suggestions into a distutil'ed package called __std__, and have placed it here: http://hkn.eecs.berkeley.edu/~dyoo/python/__std__/ Thanks again for all your help!
- Previous message (by thread): Having a __stdlib__ namespace?
- Next message (by thread): Mail <-> News gateway not working?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list