diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-10 00:45:07 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-10 00:45:07 -0300 |
commit | c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe (patch) | |
tree | 742dd839971d2aab1f08fd0291af66e6439646ab /hercules/convert_db.py | |
download | tools-c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe.tar.gz tools-c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe.tar.bz2 tools-c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe.tar.xz tools-c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe.zip |
Add initial tools
Diffstat (limited to 'hercules/convert_db.py')
-rwxr-xr-x | hercules/convert_db.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/hercules/convert_db.py b/hercules/convert_db.py new file mode 100755 index 0000000..e10ad8a --- /dev/null +++ b/hercules/convert_db.py @@ -0,0 +1,25 @@ +#! /usr/bin/env python +# -*- coding: utf8 -*- +# +# Copyright (C) 2015 Evol Online +# Author: Andrei Karas (4144) + +import sys + +from code.server.evol.main import dbEvolMain +from code.server.tmw.main import dbTmwMain + +def showHelp(): + print "Usage: ./convert_db.py evol" + print " ./convert_db.py tmw" + exit(1) + +if len(sys.argv) != 2: + showHelp() + +if sys.argv[1] == "evol": + dbEvolMain() +elif sys.argv[1] == "tmw": + dbTmwMain() +else: + showHelp() |