def astar(mod, *args, **dict_p) : threads = "4" if dict_p.has_key("threads"): threads = dict_p['threads'] del dict_p['threads'] tasks.run(__name__, 'com.gaocan.train.route.AStarSearch', *['/var/opt/traindata ' , threads], **dict_p )
def astar(mod, *args, **dict_p): threads = "4" if dict_p.has_key("threads"): threads = dict_p['threads'] del dict_p['threads'] tasks.run(__name__, 'com.gaocan.train.route.AStarSearch', *['/var/opt/traindata ', threads], **dict_p)
def run_main(mod, threads = 4, points=5) : print threads, points tasks.run(__name__, 'org.lattice.G', ' '.join([str(threads), str(points)]), mx='1024m' )