syncplay/syncplayServer.py

24 lines
687 B
Python
Raw Normal View History

#!/usr/bin/env python2
2012-10-12 16:37:12 +00:00
#coding:utf8
2014-06-19 18:31:49 +00:00
import site, sys
2013-12-18 06:33:39 +00:00
# libpath
2014-06-19 18:31:49 +00:00
try:
if (sys.version_info.major != 2) or (sys.version_info.minor < 7):
2014-06-19 18:35:51 +00:00
raise Exception("You must run Syncplay with Python 2.7!")
2014-06-19 18:31:49 +00:00
except AttributeError:
2014-06-19 18:35:51 +00:00
import warnings
warnings.warn("You must run Syncplay with Python 2.7!")
2014-06-19 18:31:49 +00:00
2012-10-12 16:37:12 +00:00
from twisted.internet import reactor
from syncplay.server import SyncFactory, ConfigurationGetter
if __name__ == '__main__':
argsGetter = ConfigurationGetter()
args = argsGetter.getConfiguration()
2016-07-03 23:09:36 +00:00
reactor.listenTCP(int(args.port), SyncFactory(args.password, args.motd_file, args.isolate_rooms, args.salt, args.disable_ready,args.disable_chat))
reactor.run()