#!/usr/bin/python3 import pathlib import subprocess def _(*args): subprocess.run(args, check=True) HOME = pathlib.Path.home() BIN = HOME / ".local" / "bin" GIT = HOME / "git" ALEXPDP7_REPO = GIT / "alexpdp7" if not ALEXPDP7_REPO.exists(): _("git", "clone", "https://github.com/alexpdp7/alexpdp7.git", ALEXPDP7_REPO) _("pipx", "install", "-e", ALEXPDP7_REPO / "scripts", "--force") _(BIN / "setup-ubpkg")