Skip to content

Commit b9abca7

Browse files
authored
Use correct path separator for MYPYPATH on Windows (#117)
From https://mypy.readthedocs.io/en/stable/running_mypy.html#how-imports-are-found: > The MYPYPATH environment variable (a list of directories, colon-separated on > UNIX systems, semicolon-separated on Windows).
1 parent f83f70c commit b9abca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/private/mypy.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def _mypy_impl(target, ctx):
179179
sorted(pyi_dirs)
180180
)
181181

182-
mypy_path = ":".join([x for x in path_components if not _should_ignore_import(x)])
182+
mypy_path = ctx.configuration.host_path_separator.join([x for x in path_components if not _should_ignore_import(x)])
183183

184184
output_file = ctx.actions.declare_file(ctx.rule.attr.name + ".mypy_stdout")
185185

0 commit comments

Comments
 (0)