mirror of
https://github.com/Syncplay/syncplay
synced 2024-12-14 02:45:11 +00:00
ac4da59479
This reverts commit 51fba3722f
.
33 lines
832 B
Python
Executable File
33 lines
832 B
Python
Executable File
#!/usr/bin/env python3
|
|
#coding:utf8
|
|
|
|
import sys
|
|
|
|
# libpath
|
|
|
|
try:
|
|
if (sys.version_info.major != 3) or (sys.version_info.minor < 4):
|
|
raise Exception("You must run Syncplay with Python 3.4 or newer!")
|
|
except AttributeError:
|
|
import warnings
|
|
warnings.warn("You must run Syncplay with Python 3.4 or newer!")
|
|
|
|
from twisted.internet import reactor
|
|
|
|
from syncplay.server import SyncFactory, ConfigurationGetter
|
|
|
|
if __name__ == '__main__':
|
|
argsGetter = ConfigurationGetter()
|
|
args = argsGetter.getConfiguration()
|
|
reactor.listenTCP(
|
|
int(args.port),
|
|
SyncFactory(
|
|
args.password,
|
|
args.motd_file,
|
|
args.isolate_rooms,
|
|
args.salt,
|
|
args.disable_ready,
|
|
args.disable_chat,
|
|
args.max_chat_message_length))
|
|
reactor.run()
|