From ee3c61dad3bd516e70d578af0a85cf90cd7c3ec9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 8 Aug 2024 01:58:03 +0200 Subject: [PATCH] move to main --- spcd/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spcd/__main__.py b/spcd/__main__.py index 1c82dba..7debe9b 100755 --- a/spcd/__main__.py +++ b/spcd/__main__.py @@ -6,9 +6,9 @@ import sys import env -if env.SPCD_PYTHON_VENV_PACKAGES not in sys.path: - sys.path.insert(0, env.SPCD_PYTHON_VENV_PACKAGES) -import spcd - if __name__ == "__main__": + if env.SPCD_PYTHON_VENV_PACKAGES not in sys.path: + sys.path.insert(0, env.SPCD_PYTHON_VENV_PACKAGES) + import spcd + spcd.main(__file__)