[Checkins] SVN: zope.configuration/trunk/src/zope/configuration/name.py This time for sure, Rocky.

Tres Seaver cvs-admin at zope.org
Fri May 18 03:12:28 UTC 2012


Log message for revision 126021:
  This time for sure, Rocky.

Changed:
  U   zope.configuration/trunk/src/zope/configuration/name.py

-=-
Modified: zope.configuration/trunk/src/zope/configuration/name.py
===================================================================
--- zope.configuration/trunk/src/zope/configuration/name.py	2012-05-18 03:12:16 UTC (rev 126020)
+++ zope.configuration/trunk/src/zope/configuration/name.py	2012-05-18 03:12:23 UTC (rev 126021)
@@ -74,9 +74,10 @@
     try:
         package = __import__(package, _globals, _globals, _silly)
     except ImportError:
-        if file and os.path.abspath(os.path.normpath(file)) == file:
+        norm = os.path.normpath(file)
+        if file and os.path.abspath(norm) == norm:
             # The package didn't matter
-            return file
+            return norm
         raise
 
     path = os.path.dirname(package.__file__)



More information about the checkins mailing list