Re: [Pyobjc-dev] top level namespaces
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2003-02-01 22:45:28
|
On Saturday, Feb 1, 2003, at 15:31 US/Eastern, Just van Rossum wrote: > Nah, there's StringIO, BaseHTTPServer.py, Carbon, and these are just > the > first three that popped up in my head... Oh, duh! Don't know where my brain was on that one! >>> 3. Its not hard to package the modules in a subdirectory, using >>> .pth files in /usr/lib/site-packages and with minimal extra code in >>> bin-python-main.m. Hmm, and some extra code in bundlebuilder.py >>> too, I think. OTOH, extra code somewhere is still extra code, and >>> putting everything in a package doesn't require any extra code. >> >> I'm not sure what this means.... > > This means there will be a folder inside site-packages containing a > folder (eg.) PyObjC which contains all our stuff. Right next to it in > site-packages there's a file called PyObjC.pth which contains one line > "PyObjC", which is the relative path to our dir which will then be > added > to sys.path by site.py. So this solves the cluttering of the > site-packages dir. Ahhh... OK. That makes sense. It also doesn't break anything. Way superior. Didn't even know it existed. b.bum |