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
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:
parent
3e85c6e421
commit
a9fa0d911d
5 changed files with 10 additions and 7 deletions
|
@ -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-"
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
5
spcd/shell.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
"""Shell for environment module."""
|
||||
|
||||
import importlib
|
||||
|
||||
env = importlib.import_module("env")
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue