def run_server_thread(): main(['buildpal', 'server', '--port={}'.format(SRV_PORT), '--silent'], terminator)
def run_manager_thread(): main(['buildpal', 'manager', '--ui=none', '--ini={}'.format(ini_file), '--port={}'.format(MGR_PORT), '--profile', 'test'], terminator)
import sys if __name__ == "__main__": from buildpal.__main__ import main result = main(sys.argv) if result: sys.exit(result)