[Zope3-checkins] CVS: Zope3/utilities - finddeps.py:1.5
Fred L. Drake, Jr.
fred at zope.com
Thu Mar 11 12:17:08 EST 2004
Update of /cvs-repository/Zope3/utilities
In directory cvs.zope.org:/tmp/cvs-serv19921
Modified Files:
finddeps.py
Log Message:
replace os.path.split(x)[0] with os.path.dirname(x) in a couple more
places
=== Zope3/utilities/finddeps.py 1.4 => 1.5 ===
--- Zope3/utilities/finddeps.py:1.4 Thu Mar 11 12:07:25 2004
+++ Zope3/utilities/finddeps.py Thu Mar 11 12:17:07 2004
@@ -119,7 +119,7 @@
def getDependenciesOfZCMLFile(path):
"""Get dependencies from ZCML file."""
- localModule = os.path.split(path)[0].replace(ZOPESRC+'/', '')
+ localModule = os.path.dirname(path).replace(ZOPESRC+'/', '')
localModule = localModule.replace('/', '.')
deps = []
lineno = 0
@@ -162,7 +162,7 @@
# built-ins (like sys) do not have a file associated
if not hasattr(module, '__file__'):
continue
- dir = os.path.split(module.__file__)[0]
+ dir = os.path.dirname(module.__file__)
if dir.startswith(ZOPESRC) and dep.path not in ('zope', 'zope.app'):
filteredDeps.append(dep)
return filteredDeps
More information about the Zope3-Checkins
mailing list