From: Christian Heller Date: Wed, 24 Sep 2025 12:35:18 +0000 (+0200) Subject: Standardize dependency-check into plomlib's dependency_hint. X-Git-Url: https://plomlompom.com/repos/?a=commitdiff_plain;h=452a359102eb1bd932ac44cbd365091c2a0c66d0;p=ytplom Standardize dependency-check into plomlib's dependency_hint. --- diff --git a/plomlib b/plomlib index f2dc66a..7aa63ce 160000 --- a/plomlib +++ b/plomlib @@ -1 +1 @@ -Subproject commit f2dc66a2d4f1e8823246d1621b424e44ec423897 +Subproject commit 7aa63ce21db697ce663b56e345fe0c09969556a4 diff --git a/src/plomlib/setup.py b/src/plomlib/setup.py new file mode 120000 index 0000000..4a26f80 --- /dev/null +++ b/src/plomlib/setup.py @@ -0,0 +1 @@ +../../plomlib/py/setup.py \ No newline at end of file diff --git a/src/run.py b/src/run.py index 00c528a..09bb711 100755 --- a/src/run.py +++ b/src/run.py @@ -2,8 +2,9 @@ """Match command line calls to appropriate scripts.""" # standard libs -from sys import argv, exit as sys_exit +from sys import argv # non-standard libs +from plomlib.setup import dependency_hint try: from ytplom.db import DbFile from ytplom.primitives import HandledException @@ -12,8 +13,7 @@ try: from ytplom.http import serve from ytplom.sync import sync except ModuleNotFoundError as e: - print(f"Missing dependency: {e}. Please run with 'install_deps' argument.") - sys_exit(1) + dependency_hint(e) if __name__ == '__main__':