Skip to content

Commit c9ef8f8

Browse files
committed
call correct path get_child function
1 parent 64be885 commit c9ef8f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

python/private/local_runtime_repo.bzl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def _find_python_exe_from_target(rctx):
280280
# On Windows, python.exe is in the root, not under `bin/`, so
281281
# go up a directory
282282

283-
path = base_path.dirname.dirname.relative_paths(base_path.basename)
283+
path = base_path.dirname.dirname.get_child(base_path.basename)
284284
path = rctx.path("{}.exe".format(path))
285285
if path.exists:
286286
return path, None
@@ -294,10 +294,10 @@ def _find_python_exe_from_target(rctx):
294294

295295
describe_failure = lambda: (
296296
"Target '{target}' could not be resolved to a valid path. " +
297-
"Attempted paths: {paths}".format(
298-
target = rctx.attr.interpreter_target,
299-
paths = "\n".join([str(p) for p in attempted_paths]),
300-
)
297+
"Attempted paths: {paths}"
298+
).format(
299+
target = rctx.attr.interpreter_target,
300+
paths = "\n".join([str(p) for p in attempted_paths]),
301301
)
302302
return None, describe_failure
303303

0 commit comments

Comments
 (0)