def main(args=sys.argv):
    """Run the work() method from the class instance in the file "job-instance.pickle".
    """
    try:
        # Set up logging.
        logging.basicConfig(level=logging.WARN)
        work_dir = args[1]
        assert os.path.exists(work_dir), "First argument to lsf_runner.py must be a directory that exists"
        do_work_on_compute_node(work_dir)
    except Exception as exc:
        # Dump encoded data that we will try to fetch using mechanize
        print(exc)
        raise
def main ( args = sys . argv ) : try : logging . basicConfig ( level = logging . WARN ) work_dir = args [ 1 ] assert os . path . exists ( work_dir ) , "First argument to lsf_runner.py must be a directory that exists" do_work_on_compute_node ( work_dir ) except Exception as exc : print ( exc ) raise
Run the work() method from the class instance in the file "job-instance.pickle".