From 96d08df70dd621bd6ea1611867a1a6a7b533ee4c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 14 Sep 2024 01:42:36 +0200 Subject: [PATCH] env/init,cmd,util --- spcd/__init__.py | 4 +++- spcd/cmd.py | 2 +- spcd/util.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/spcd/__init__.py b/spcd/__init__.py index 3d5ec2a..5114a6a 100644 --- a/spcd/__init__.py +++ b/spcd/__init__.py @@ -2,11 +2,11 @@ __version__ = "0.0.1" +import importlib import sys from os import environ, pathsep from pathlib import Path -import env from rwx import fs from rwx.log import stream as log from rwx.ps import run @@ -15,6 +15,8 @@ from spcd import cmd from spcd.ci import project, projects from spcd.util import browse, cat, split, step +env = importlib.import_module("env") + COMMANDS_PREFIX = "spcd-" diff --git a/spcd/cmd.py b/spcd/cmd.py index a1108ee..9df7ed3 100644 --- a/spcd/cmd.py +++ b/spcd/cmd.py @@ -3,9 +3,9 @@ import os from pathlib import Path -import env from rwx import ps +from spcd import env from spcd.ci import project, projects from spcd.util import browse diff --git a/spcd/util.py b/spcd/util.py index 2dd7718..dd29da4 100644 --- a/spcd/util.py +++ b/spcd/util.py @@ -4,10 +4,11 @@ import os from pathlib import Path from urllib.parse import urlparse, urlunparse -import env from rwx import fs from rwx.log import stream as log +from spcd import env + def add_url_path(url: str, extra_path: str) -> str: """Append an extra segment to an existing URL."""