diff options
author | goatchurch <devnull@localhost> | 2009-06-28 20:47:11 +0100 |
---|---|---|
committer | goatchurch <devnull@localhost> | 2009-06-28 20:47:11 +0100 |
commit | 4c87ce59d350b3d8c3458f538ea6c1b6e5cfa455 (patch) | |
tree | cb7e096124853479ea55fbe667706ceca75bf4ef /databaseReset.py | |
parent | ca7bc171c96821fd4f6f58137d94f53e5de1afe6 (diff) | |
download | troggle-4c87ce59d350b3d8c3458f538ea6c1b6e5cfa455.tar.gz troggle-4c87ce59d350b3d8c3458f538ea6c1b6e5cfa455.tar.bz2 troggle-4c87ce59d350b3d8c3458f538ea6c1b6e5cfa455.zip |
[svn] with command option
Diffstat (limited to 'databaseReset.py')
-rw-r--r-- | databaseReset.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/databaseReset.py b/databaseReset.py index e9092ce..7bc1021 100644 --- a/databaseReset.py +++ b/databaseReset.py @@ -76,7 +76,13 @@ def export_cavetab(): tocavetab.writeCaveTab(outfile)
outfile.close()
+if __name__ == "__main__":
+ import sys
+ if "reset" in sys.argv:
+ reset()
+ else:
+ print "Do 'python databaseReset.py reset'"
-
\ No newline at end of file +
|