Revision: 6957
http://jython.svn.sourceforge.net/jython/?rev=6957&view=rev
Author: amak
Date: 2009-12-14 15:51:11 +0000 (Mon, 14 Dec 2009)
Log Message:
-----------
Fix for bug 1515
modjy sometimes adds None to the sys.path
http://bugs.jython.org/issue1515
Thanks to Victor Ng (crankycoder) for the report and the patch.
Modified Paths:
--------------
trunk/jython/Lib/modjy/modjy_publish.py
Modified: trunk/jython/Lib/modjy/modjy_publish.py
===================================================================
--- trunk/jython/Lib/modjy/modjy_publish.py 2009-12-09 07:48:45 UTC (rev 6956)
+++ trunk/jython/Lib/modjy/modjy_publish.py 2009-12-14 15:51:11 UTC (rev 6957)
@@ -34,7 +34,7 @@
else:
self.app_directory = self.servlet_context.getRealPath('/')
self.params['app_directory'] = self.app_directory
- if not self.app_directory in sys.path:
+ if self.app_directory is not None and not self.app_directory in sys.path:
sys.path.append(self.app_directory)
def map_uri(self, req, environ):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|