From 30bd860bd8a8bb223f3aab86afc2ed28c5bd5a7d Mon Sep 17 00:00:00 2001 From: acxz <17132214+acxz@users.noreply.github.com> Date: Thu, 17 Feb 2022 11:07:42 -0500 Subject: [PATCH] fix python command on windows --- third_party/py/python_configure.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git third_party/py/python_configure.bzl third_party/py/python_configure.bzl index 4e5218118ee5..7ec4459d6109 100644 --- third_party/py/python_configure.bzl +++ third_party/py/python_configure.bzl @@ -206,7 +206,7 @@ def _get_python_lib(repository_ctx, python_bin, lib_path_key): " paths.append(path)\n" + "if len(paths) >=1:\n" + " print(paths[0])\n" + "END" ) - cmd = "%s - %s" % (python_bin, print_lib) + cmd = '"%s" - %s' % (python_bin, print_lib) result = repository_ctx.execute([_get_bash_bin(repository_ctx), "-c", cmd]) return result.stdout.strip("\n")