summaryrefslogblamecommitdiff
path: root/hercules/convert_db.py
blob: e10ad8a80b86cd4639e72b4d56aecd69c0d52cdc (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                                 

                                            














                                       
#! /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()