[Zope3-checkins] CVS: ZODB3/ZConfig - loader.py:1.11
Fred L. Drake, Jr.
fred@zope.com
Fri, 10 Jan 2003 01:23:48 -0500
Update of /cvs-repository/ZODB3/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv11727
Modified Files:
loader.py
Log Message:
Not all directories on sys.path are absolute, so don't assume that
they are.
=== ZODB3/ZConfig/loader.py 1.10 => 1.11 ===
--- ZODB3/ZConfig/loader.py:1.10 Thu Jan 9 17:29:35 2003
+++ ZODB3/ZConfig/loader.py Fri Jan 10 01:23:45 2003
@@ -145,7 +145,7 @@
raise ZConfig.SchemaError(
"illegal schema component name: " + `package`)
for dir in sys.path:
- dirname = os.path.join(dir, *parts)
+ dirname = os.path.join(os.path.abspath(dir), *parts)
fn = os.path.join(dirname, "component.xml")
if os.path.exists(fn):
break