from lexipython.server import app as server server.run() import argparse def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--run", action="store_true") return parser.parse_args() def main(): args = parse_args() if args.run: from flaskapp import app app.run() if __name__ == "__main__": main() else: print(__name__)