diff --git a/spcd/__init__.py b/spcd/__init__.py index 302ee52..48492b1 100644 --- a/spcd/__init__.py +++ b/spcd/__init__.py @@ -3,11 +3,6 @@ __version__ = "0.0.1" import sys - -import env - -sys.path.insert(0, env.SPCD_PYTHON_VENV_PACKAGES) - from pathlib import Path from rwx import fs diff --git a/spcd/__main__.py b/spcd/__main__.py index 424985f..1c82dba 100755 --- a/spcd/__main__.py +++ b/spcd/__main__.py @@ -2,6 +2,12 @@ """Entry point.""" +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__":