# No relative imports allowed in this file to be able to run server_setup.py without packages import sys from pathlib import Path sys.path.insert(0, "..") 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)