Message5917
The exception is indeed caused, by imp.load not finding site.py. The problem is, that sys.path is not yet properly initialized, when imp.load("site.py") is invoked. This happens, if jython is embedded within the WAR archive. In this case, the method ModjyJServlet#processPythonLib sets up sys.path to the location of the jython files within the extracted WAR archive. Currently this method is called immediately after importing "site.py". The fix simply calls processPythonLib before checkSitePackages.
I'm not sure, if we need an unit test for this bug and how to set up such a test. |
|
Date |
User |
Action |
Args |
2010-07-22 08:06:21 | akruis | set | messageid: <1279785981.08.0.990014134267.issue1629@psf.upfronthosting.co.za> |
2010-07-22 08:06:21 | akruis | set | recipients:
+ akruis, rafanunes |
2010-07-22 08:06:20 | akruis | link | issue1629 messages |
2010-07-22 08:06:20 | akruis | create | |
|