summaryrefslogtreecommitdiff
path: root/hercules/convert_db.py
diff options
context:
space:
mode:
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..1c367ff
--- /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 *
+from code.server.tmw.main import *
+
+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()