[Zope-Checkins] CVS: Zope3/lib/python/Zope/Configuration - name.py:1.1.2.7
Jim Fulton
jim@zope.com
Tue, 12 Feb 2002 15:29:31 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Configuration
In directory cvs.zope.org:/tmp/cvs-serv11482
Modified Files:
Tag: Zope-3x-branch
name.py
Log Message:
Fixed bug: name resolving names without dots failed
=== Zope3/lib/python/Zope/Configuration/name.py 1.1.2.6 => 1.1.2.7 ===
last=names[-1]
mod='.'.join(names[:-1])
+
+ if not mod:
+ return __import__(name, _globals, _globals, _silly)
while 1:
m=__import__(mod, _globals, _globals, _silly)