fix python command on windows (#28895)

pull/28926/head
Akash Patel 3 years ago committed by GitHub
parent f00e842609
commit 75841dd1e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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")

Loading…
Cancel
Save