Fix missing double quotes for spaces in paths (#6026)

This commit is contained in:
mehrdadn
2019-10-26 20:46:55 -07:00
committed by Philipp Moritz
parent eb41c945a1
commit e706cb63cc
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ def _get_python_lib(repository_ctx, python_bin):
"for path in all_paths:\n" + " if os.path.isdir(path):\n" +
" 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')