Author: Cristian Stefan Totolin Language: python
Description: Not specified Timestamp: 2017-07-02 17:03:39 +0000
View raw paste Reply
import sys
import masfrl.master.utils.io as io
from masfrl.master.server import Server
from masfrl.slave.client import Client

host = 'localhost'
port = 8000

if str(sys.argv[1]) == 'server':
    # Read environment file
    server = Server(host, port)
    server.run(2, io.load_env())
else:
    client = Client(host, port, False)
    client.work()
 
View raw paste Reply