def main(): progname = os.path.basename(sys.argv[0]) usage = progname + " configure_file.cfg" parser = OptionParser(usage,version=SPARXVERSION) (options, args) = parser.parse_args() if len(args) != 1: print "usage: " + usage print "Please run '" + progname + " -h' for detailed options" sys.exit() if global_def.CACHE_DISABLE: from utilities import disable_bdb_cache disable_bdb_cache() from development import ali2d_mref global_def.BATCH = True ali2d_mref(args[0]) global_def.BATCH = False
def main(): progname = os.path.basename(sys.argv[0]) usage = progname + " configure_file.cfg" parser = OptionParser(usage, version=SPARXVERSION) (options, args) = parser.parse_args() if len(args) != 1: print("usage: " + usage) print("Please run '" + progname + " -h' for detailed options") sys.exit() if global_def.CACHE_DISABLE: from utilities import disable_bdb_cache disable_bdb_cache() from development import ali2d_mref global_def.BATCH = True ali2d_mref(args[0]) global_def.BATCH = False