Skip to content

Commit f9088e2

Browse files
committed
extract_utils: do not redefine path name
Change-Id: Ic0e17bc5de31717bde6cc5e3457dd1b678781b53
1 parent a919768 commit f9088e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extract_utils/utils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def color_print(*args, color: Color, **kwargs):
8282

8383
@lru_cache(maxsize=None)
8484
def executable_path(name: str) -> str:
85-
path = shutil.which(
85+
exe_path = shutil.which(
8686
name,
8787
path=os.pathsep.join(
8888
[
@@ -92,10 +92,10 @@ def executable_path(name: str) -> str:
9292
),
9393
)
9494

95-
if not path:
95+
if not exe_path:
9696
raise ValueError(f'Failed to find executable path for: {name}')
9797

98-
return path
98+
return exe_path
9999

100100

101101
def process_cmds_in_parallel(input_cmds: parallel_input_cmds, fatal=False):

0 commit comments

Comments
 (0)