syncplay/sync_mpc.py
Uriziel 575c30bbe9 Dla mpc dodana obs³uga config file
refaktoryzacja kodu
2012-06-21 12:30:54 +02:00

17 lines
414 B
Python
Executable File

#coding:utf8
import thread
import sys
from twisted.internet import reactor
from syncplay import client
from syncplay.players import mpc
import common_functions
if __name__ == '__main__':
host,port, name = common_functions.get_configuration()
manager = client.Manager(host, port, name, lambda m: mpc.run_mpc(m))
thread.start_new_thread(common_functions.stdin_thread, (manager,))
manager.start()