From b53ddb743e0f69b7a176b1b5e236a7927fbd3b2c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 7 Aug 2024 18:47:11 +0200 Subject: [PATCH] move to main --- spcd/__init__.py | 5 ----- spcd/__main__.py | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) 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__":