blob: 0e361d9e92769f12a9f77d0eda802cfb72c765f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/env python3
# -*- 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()
|