From ba090a746a45581e47754a39e1b59b3ee5eebc2b Mon Sep 17 00:00:00 2001 From: why-not-try-calmer Date: Wed, 15 Feb 2023 09:56:25 +0100 Subject: [PATCH] Added __main__ --- pytransifex/__main__.py | 4 ++++ pytransifex/cli.py | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 pytransifex/__main__.py diff --git a/pytransifex/__main__.py b/pytransifex/__main__.py new file mode 100644 index 0000000..b6636bf --- /dev/null +++ b/pytransifex/__main__.py @@ -0,0 +1,4 @@ +from pytransifex.cli import cli + +if __name__ == "__main__": + cli() diff --git a/pytransifex/cli.py b/pytransifex/cli.py index d8db4e3..f9e45da 100644 --- a/pytransifex/cli.py +++ b/pytransifex/cli.py @@ -129,7 +129,3 @@ def pull(output_directory: str | Path | None, only_lang: str | None): finally: click.echo(reply) settings.to_disk() - - -if __name__ == "__main__": - cli()