Make path separator based on OS separator (#3375)

This commit is contained in:
Rune Tynan
2019-10-16 13:12:45 -04:00
committed by Jelle Zijlstra
parent 299d89ab76
commit 6058c23136

View File

@@ -133,7 +133,7 @@ def can_run(exe: str, *, args: List[str]) -> bool:
def _is_version(path: str, version: str) -> bool:
return any("{}/{}".format(d, version) in path for d in TYPESHED_SUBDIRS)
return any("{}{}{}".format(d, os.path.sep, version) in path for d in TYPESHED_SUBDIRS)
def check_subdirs_discoverable(subdir_paths: List[str]) -> None: