summaryrefslogtreecommitdiff
path: root/hercules/convert_db.py
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-10 00:45:07 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-10 00:45:07 -0300
commitc6095ad062eaa0f5576cfab1c4fe436b90c2fbfe (patch)
tree742dd839971d2aab1f08fd0291af66e6439646ab /hercules/convert_db.py
downloadtools-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-xhercules/convert_db.py25
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()