diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-18 15:26:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-18 15:30:41 +0300 |
commit | a78224ded6873bbb3078a7f01f123551b34a82fb (patch) | |
tree | f286da32fb0018820ae59d9eeadbe5de31e6486c /hercules/convert_db.py | |
parent | 1cf8a73eaab31a1a868ea9edf88d256a37d21fc2 (diff) | |
download | evol-tools-a78224ded6873bbb3078a7f01f123551b34a82fb.tar.gz evol-tools-a78224ded6873bbb3078a7f01f123551b34a82fb.tar.bz2 evol-tools-a78224ded6873bbb3078a7f01f123551b34a82fb.tar.xz evol-tools-a78224ded6873bbb3078a7f01f123551b34a82fb.zip |
hercules: add converter for account.txt
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..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() |