From c2e878ad6a277f31624bae1b2f077d956bcb55b2 Mon Sep 17 00:00:00 2001 From: Yeison Vargas Date: Tue, 30 Apr 2024 08:41:06 -0500 Subject: [PATCH] fix: update pyinstaller target --- safety.spec | 2 +- safety/__main__.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/safety.spec b/safety.spec index 820938d2..ef908acf 100644 --- a/safety.spec +++ b/safety.spec @@ -3,7 +3,7 @@ block_cipher = None a = Analysis( - ['safety/cli.py'], + ['safety/__main__.py'], pathex=['.'], binaries=[], datas=[('safety/VERSION', './safety')], diff --git a/safety/__main__.py b/safety/__main__.py index d9a0bdab..47927245 100644 --- a/safety/__main__.py +++ b/safety/__main__.py @@ -1,7 +1,5 @@ """Allow safety to be executable through `python -m safety`.""" -from __future__ import absolute_import - -from .cli import cli +from safety.cli import cli if __name__ == "__main__": # pragma: no cover