parent
488ce0caad
commit
c05a4c964d
@ -0,0 +1,4 @@
|
||||
[server]
|
||||
port = 7777
|
||||
daemon = True
|
||||
|
@ -1,3 +1,19 @@
|
||||
# -*- coding: UTF-8 -*-
|
||||
import server
|
||||
import requestHandler
|
||||
from dcs.tests.server import Server
|
||||
from configparser import ConfigParser
|
||||
|
||||
print('reading config args...')
|
||||
configFile = '../conf/settings.ini'
|
||||
con = ConfigParser()
|
||||
con.read(configFile, encoding='utf-8')
|
||||
items = con.items('server')
|
||||
items = dict(items)
|
||||
print(items)
|
||||
|
||||
print('starting the server...')
|
||||
server = Server(int(items['port']))
|
||||
server.daemon = items['daemon']
|
||||
server.start()
|
||||
server.join()
|
||||
|
||||
print('success')
|
||||
|
@ -1 +0,0 @@
|
||||
|
Loading…
Reference in new issue