From 4406642e20d2b984631e6099664058013095ce49 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Mar 2024 12:58:01 -0400 Subject: git_command: unify soft/hard versions with requirements.json Use the requirements logic in the wrapper to load versions out of the requirements.json file to avoid duplicating them in git_command.py. Change-Id: Ib479049fc54ebc6f52c2c30d1315cf1734ff1990 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/415617 Reviewed-by: Josip Sokcevic Commit-Queue: Mike Frysinger Tested-by: Mike Frysinger --- wrapper.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wrapper.py') diff --git a/wrapper.py b/wrapper.py index d8823368..55082248 100644 --- a/wrapper.py +++ b/wrapper.py @@ -18,8 +18,12 @@ import importlib.util import os +def WrapperDir(): + return os.path.dirname(__file__) + + def WrapperPath(): - return os.path.join(os.path.dirname(__file__), "repo") + return os.path.join(WrapperDir(), "repo") @functools.lru_cache(maxsize=None) -- cgit v1.2.3-54-g00ecf