mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Make path separator based on OS separator (#3375)
This commit is contained in:
committed by
Jelle Zijlstra
parent
299d89ab76
commit
6058c23136
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user