[mod_python] importing from a PSP file

Simon Wittber simonwittber at gmail.com
Thu Jan 6 07:54:09 EST 2005


> You would need to be very careful with doing this as every request
> against that resource would extend sys.path. You should at least
> check it isn't in sys.path already. Extending sys.path can also
> be problematic in a threaded environment as would exist in Apache
> on Windows and if worker MPM is used on UNIX.

Ahh yes, as the sys module remains in memory, the sys.path list will
keep extending forever until apache shuts down... thanks for the heads
up.

Sw.


More information about the Mod_python mailing list