[Zope3-checkins] SVN: Zope3/trunk/utilities/finddeps.py provide a
main() function, in preparation for packagization
Fred L. Drake, Jr.
fred at zope.com
Wed May 19 14:30:07 EDT 2004
Log message for revision 24830:
provide a main() function, in preparation for packagization
-=-
Modified: Zope3/trunk/utilities/finddeps.py
===================================================================
--- Zope3/trunk/utilities/finddeps.py 2004-05-19 18:24:44 UTC (rev 24829)
+++ Zope3/trunk/utilities/finddeps.py 2004-05-19 18:30:07 UTC (rev 24830)
@@ -493,10 +493,12 @@
print
-if __name__ == '__main__':
+def main(argv=None):
+ if argv is None:
+ argv = sys.argv
try:
opts, args = getopt.getopt(
- sys.argv[1:],
+ argv[1:],
'd:m:ahlz',
['all', 'help', 'dir=', 'module=', 'long', 'zcml'])
except getopt.error, msg:
@@ -531,3 +533,7 @@
usage(1, 'The module must be specified either by path, '
'dotted name or ZCML file.')
showDependencies(path, zcml, long, all)
+
+
+if __name__ == '__main__':
+ main()
More information about the Zope3-Checkins
mailing list