Browse Source

chore: fix import from patches.py in script/lib/git.py (#41437)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Milan Burda <[email protected]>
trop[bot] 1 year ago
parent
commit
8f4e94694e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      script/lib/git.py

+ 4 - 1
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'