diff --git a/alice-ci/src/alice/__init__.py b/alice-ci/src/alice/__init__.py index e675421..39328d3 100644 --- a/alice-ci/src/alice/__init__.py +++ b/alice-ci/src/alice/__init__.py @@ -1,3 +1,4 @@ +# flake8: noqa F401 from .cli import App from .jobparser import Job, JobParser from .exceptions import NonZeroRetcode diff --git a/alice-ci/src/alice/__main__.py b/alice-ci/src/alice/__main__.py index c49f9df..4e28416 100644 --- a/alice-ci/src/alice/__main__.py +++ b/alice-ci/src/alice/__main__.py @@ -1,3 +1,3 @@ from .cli import main -main() \ No newline at end of file +main() diff --git a/alice-ci/src/alice/cli.py b/alice-ci/src/alice/cli.py index 95dd602..c40993d 100644 --- a/alice-ci/src/alice/cli.py +++ b/alice-ci/src/alice/cli.py @@ -71,6 +71,7 @@ class App: print(f"Step {step} not found in {args.input}") exit(1) + def main(): pathToScriptDir = os.path.dirname(os.path.realpath(__file__)) repoDir = os.path.join(pathToScriptDir, "..") @@ -86,5 +87,6 @@ def main(): exit(1) app.run(args, repoDir) + if __name__ == "__main__": main()