[Zope3-checkins] CVS: Zope3/src/zodb - dbdump.py:1.3
Jeremy Hylton
jeremy@zope.com
Mon, 30 Dec 2002 16:40:31 -0500
Update of /cvs-repository/Zope3/src/zodb
In directory cvs.zope.org:/tmp/cvs-serv21393/zodb
Modified Files:
dbdump.py
Log Message:
Make the module executable and treat only arg as path to a FileStorage.
=== Zope3/src/zodb/dbdump.py 1.2 => 1.3 ===
--- Zope3/src/zodb/dbdump.py:1.2 Wed Dec 25 09:12:16 2002
+++ Zope3/src/zodb/dbdump.py Mon Dec 30 16:40:30 2002
@@ -62,3 +62,8 @@
def fsdump(path, outp=None, with_offset=True):
iter = FileIterator(path)
dbdump(iter, outp, with_offset)
+
+if __name__ == "__main__":
+ import sys
+ path = sys.argv[1]
+ fsdump(path)