def main(): parser = argparse.ArgumentParser() parser.add_argument('op', nargs='?', choices=['clean', 'setup'], default='setup') ui = parser.parse_args() if ui.op == 'clean': try: import bootstrap_helper bootstrap_helper.clean_buildsystem(buildsystem, conf) except ImportError: exit('[bootstrap]: Buildsystem not installed.') else: bootstrap()
def main(): parser = argparse.ArgumentParser() parser.add_argument('op', nargs='?', choices=['clean', 'setup'], default='setup') ui = parser.parse_args() if ui.op == 'clean': try: import bootstrap_helper bootstrap_helper.clean_buildsystem(buildsystem, conf['build']['paths']['output']) except ImportError: exit('[bootstrap]: Buildsystem not installed.') else: bootstrap()
def main(): parser = argparse.ArgumentParser() parser.add_argument("op", nargs="?", choices=["clean", "setup"], default="setup") ui = parser.parse_args() if ui.op == "clean": try: import bootstrap_helper bootstrap_helper.clean_buildsystem(buildsystem, conf) except ImportError: exit("[bootstrap]: Buildsystem not installed.") else: bootstrap()