On Jun 15, 2006, at 2:12 PM, Bob Ippolito wrote: > FWIW, this isn't at all Mac OS X specific.. > > $ uname -rs && pwd && ./python -c "import sys; print sys.path" > FreeBSD 6.0-RELEASE > /usr/home/bob/src/python/:colon > 'import site' failed; use -v for traceback > ['', '/usr/local/lib/python25.zip', '/usr/home/bob/src/python/', > 'colon/../Lib/', '/usr/home/bob/src/python/', 'colon/../Lib/plat- > freebsd6', '/usr/home/bob/src/python/', 'colon/../Lib/lib-tk', '/usr/ > home/bob/src/python/', 'colon/Modules'] > > The issue is of course that all this code is happening in C and > expecting ':' as the delimiter. Modules/getpath.c probably should be > refactored to use PyObject* ASAP, rather than doing it last.
Well, it looks like that's not such a good idea either, because Py_GetPath() is called before Python's fully initialized. Any exception would probably make the interpreter explode. Hmm :) -bob _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig