site.py as a frozen module?
Gordon McMillan
gmcm at hypernet.com
Wed Dec 15 13:55:01 EST 1999
Mike Romberg wrote:
> I've been attempting to use site.py as a frozen module.
> Unfortunatly it does not seem to work. I have verified that the
> module is correctly setup as a frozen module and I can import it
> with a regular ole' import. But python is not loading it on its
> own.
>
> The docs I've read don't really say if this should work or not.
> So... I'm wondering if anyone out there knows if this can be
> done.
Should work, as long as you've told Python about your frozen
modules before it tries (site is imported as part of
Py_Initialize).
OTOH, you could set Py_NoSiteFlag, and then import it
yourself and get the same effect.
- Gordon
More information about the Python-list
mailing list