def main(farm_port): from pyro_helper import pyro_expose pyro_expose(farm, farm_port, 'farm')
def main(): from pyro_helper import pyro_expose pyro_expose(farm, 20099, 'farm')
def _new(self, n=None): self.eip = eipool(ncpu if n is None else n) # expose the farm via Pyro4 if __name__ == '__main__': from pyro_helper import pyro_expose import argparse parser = argparse.ArgumentParser( description="open the farm in your slave machine") parser.add_argument('--gui', help='Start the program with a message box', action="store_true") parser.add_argument('--visualize', '-v', action='store_true', help='visualize the enviroment') parser.add_argument('--obstacles', '-o', help='the obstacle numbers of the environment', choices=range(0, 11), default=3) parser.add_argument('--difficulty', '-d', help='the difficulty of the environment', choices=range(4), default=2) args = parser.parse_args() pyro_expose(farm, 20099, 'farm', has_gui=args.gui)