Skip to content

Commit

Permalink
Fix typeshed path lookup
Browse files Browse the repository at this point in the history
Reviewed By: sinancepel

Differential Revision: D23917255

fbshipit-source-id: f319efebe90e67e4220339e10efa6ee3155537ad
  • Loading branch information
grievejia authored and facebook-github-bot committed Sep 24, 2020
1 parent a3c4b2a commit 93733ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/find_directories.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93733ef

Please sign in to comment.