main/importlib
Some checks failed
/ arch (push) Successful in 3m1s
/ alpine (push) Successful in 1m59s
/ fedora (push) Successful in 15m45s
/ opensuse (push) Successful in 4m57s
/ alma (push) Successful in 12m45s
/ rocky (push) Successful in 13m51s
/ ubuntu (push) Successful in 10m53s
/ debian (push) Failing after 6m59s

This commit is contained in:
Marc Beninca 2024-09-14 03:28:35 +02:00
parent a9fa0d911d
commit bfc4538dcf
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -2,11 +2,11 @@
"""Entry point.""" """Entry point."""
import importlib
import sys import sys
from spcd.shell import env
if __name__ == "__main__": if __name__ == "__main__":
env = importlib.import_module("env")
if env.SPCD_PYTHON_VENV_PACKAGES not in sys.path: if env.SPCD_PYTHON_VENV_PACKAGES not in sys.path:
sys.path.insert(0, env.SPCD_PYTHON_VENV_PACKAGES) sys.path.insert(0, env.SPCD_PYTHON_VENV_PACKAGES)
from spcd import main from spcd import main