Source

Regnancy / start_server.py

Full commit
#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys
import config

from server.regnancyserver import RegnancyServer

try:
    import psyco
    psyco.full()
except:
    pass

if len(sys.argv) < 2:
    print "Missing port number."
    print "Usage:"
    print "  python start_server.py 9989"
    sys.exit()

port = (sys.argv)[1]
s = RegnancyServer(port=int(port))

s.Launch()