Skip to content

Commit 8029ddb

Browse files
author
Sebastian Pietras
authored
Added path separator dependent on system (#53)
1 parent 275995e commit 8029ddb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

defs.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def _pip_repository_impl(rctx):
2222
rctx.path(Label("@" + repo + "//:BUILD.bazel")).dirname
2323
for repo in all_requirements
2424
]
25-
pypath = ":".join([str(p) for p in [rules_root] + thirdparty_roots])
25+
separator = ":" if not "windows" in rctx.os.name.lower() else ";"
26+
pypath = separator.join([str(p) for p in [rules_root] + thirdparty_roots])
2627

2728
args = [
2829
python_interpreter,

0 commit comments

Comments
 (0)