From 4a727c6a729f8c4a552a0f482b804df404053f3b Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Mon, 26 Feb 2024 10:05:33 +0100 Subject: [PATCH] chore: fix import from patches.py in script/lib/git.py (#41436) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Milan Burda --- script/lib/git.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/lib/git.py b/script/lib/git.py index f96ec9b92adf..676788766fa1 100644 --- a/script/lib/git.py +++ b/script/lib/git.py @@ -13,7 +13,10 @@ import re import subprocess import sys -from .patches import PATCH_FILENAME_PREFIX, is_patch_location_line +SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) +sys.path.append(SCRIPT_DIR) + +from patches import PATCH_FILENAME_PREFIX, is_patch_location_line UPSTREAM_HEAD='refs/patches/upstream-head'