From 7d74e8c754e5044c81dd349da78b0a9e778ccf5e Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Sat, 13 Jul 2019 18:07:21 +0200 Subject: [PATCH] Fixed broken pyinstaller --- cli.spec | 2 +- funkwhale_cli/__main__.py | 3 +++ funkwhale_cli/cli/__init__.py | 4 ---- 3 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 funkwhale_cli/__main__.py diff --git a/cli.spec b/cli.spec index 97709b2..3655e48 100644 --- a/cli.spec +++ b/cli.spec @@ -4,7 +4,7 @@ block_cipher = None a = Analysis( - ["funkwhale_cli/cli/__init__.py"], + ["funkwhale_cli/__main__.py"], pathex=["/home/eliotberriot/projects/funkwhale/cli"], binaries=[], datas=[], diff --git a/funkwhale_cli/__main__.py b/funkwhale_cli/__main__.py new file mode 100644 index 0000000..b788243 --- /dev/null +++ b/funkwhale_cli/__main__.py @@ -0,0 +1,3 @@ +from funkwhale_cli import cli + +cli.cli() diff --git a/funkwhale_cli/cli/__init__.py b/funkwhale_cli/cli/__init__.py index 3e21175..2ae0ba7 100644 --- a/funkwhale_cli/cli/__init__.py +++ b/funkwhale_cli/cli/__init__.py @@ -22,7 +22,3 @@ __all__ = [ "users", "cli", ] - - -if __name__ == "__main__": - cli() -- GitLab