env/init,cmd,util

This commit is contained in:
Marc Beninca 2024-09-14 01:42:36 +02:00
parent 051c91a195
commit 96d08df70d
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 6 additions and 3 deletions

View file

@ -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-"

View file

@ -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

View file

@ -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."""