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__)