From 93733ef4ca22fc40963b6f53c455cc676e8b3e03 Mon Sep 17 00:00:00 2001 From: Jia Chen Date: Thu, 24 Sep 2020 16:53:08 -0700 Subject: [PATCH] Fix typeshed path lookup Reviewed By: sinancepel Differential Revision: D23917255 fbshipit-source-id: f319efebe90e67e4220339e10efa6ee3155537ad --- client/find_directories.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/find_directories.py b/client/find_directories.py index 27b780bedb6..1de9f8e75b7 100644 --- a/client/find_directories.py +++ b/client/find_directories.py @@ -124,11 +124,12 @@ def find_typeshed() -> Optional[Path]: # Prefer the typeshed we bundled ourselves (if any) to the one # from the environment. + bundled_typeshed_relative_path = "pyre_check/typeshed/" bundled_typeshed = find_parent_directory_containing_directory( - current_directory, "pyre_check/typeshed/" + current_directory, bundled_typeshed_relative_path ) if bundled_typeshed: - return bundled_typeshed + return bundled_typeshed / bundled_typeshed_relative_path try: import typeshed # pyre-fixme: Can't find module import typeshed