mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-12 21:40:41 +00:00
16 lines
362 B
Python
16 lines
362 B
Python
from pathlib import Path
|
|
|
|
from ..terminal_utils import run
|
|
|
|
LOCAL_BIN = Path("/home/admin/.local/bin/")
|
|
LOGS_DIR = Path("/var/log/advlabdb")
|
|
REPO_DIR = Path("/home/admin/advlabdb")
|
|
|
|
|
|
def install_latest_pipx():
|
|
run("pip install --user --upgrade pipx")
|
|
|
|
|
|
def poetry_update():
|
|
poetry_bin = LOCAL_BIN / "poetry"
|
|
run(f"{poetry_bin} update", cwd=REPO_DIR)
|