shell/env
Some checks failed
/ arch (push) Failing after 3m14s
/ alpine (push) Failing after 2m25s
/ fedora (push) Has started running
/ debian (push) Has been cancelled
/ opensuse (push) Has been cancelled
/ ubuntu (push) Has been cancelled
/ alma (push) Has been cancelled
/ rocky (push) Has been cancelled

This commit is contained in:
Marc Beninca 2024-09-14 03:17:28 +02:00
parent 3e85c6e421
commit a9fa0d911d
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
5 changed files with 10 additions and 7 deletions

View file

@ -2,7 +2,6 @@
__version__ = "0.0.1"
import importlib
import sys
from os import environ, pathsep
from pathlib import Path
@ -13,10 +12,9 @@ from rwx.ps import run
from spcd import cmd
from spcd.ci import project, projects
from spcd.shell import env
from spcd.util import browse, cat, split, step
env = importlib.import_module("env")
COMMANDS_PREFIX = "spcd-"

View file

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

View file

@ -5,8 +5,8 @@ from pathlib import Path
from rwx import ps
from spcd import env
from spcd.ci import project, projects
from spcd.shell import env
from spcd.util import browse

5
spcd/shell.py Normal file
View file

@ -0,0 +1,5 @@
"""Shell for environment module."""
import importlib
env = importlib.import_module("env")

View file

@ -7,7 +7,7 @@ from urllib.parse import urlparse, urlunparse
from rwx import fs
from rwx.log import stream as log
from spcd import env
from spcd.shell import env
def add_url_path(url: str, extra_path: str) -> str: