Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #68 from docascode/yitian/fix-pyd-source
Browse files Browse the repository at this point in the history
[fix] Fix when meet a pyd file failed to get source
  • Loading branch information
killa1218 committed Jul 2, 2018
2 parents 100143b + 338e4c7 commit ca8ccad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docfx_yaml/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ def _update_friendly_package_name(path):

try:
full_path = inspect.getsourcefile(obj)
if full_path is None: # Meet a .pyd file
raise TypeError()
# Sub git repo path
path = full_path.replace(app.env.docfx_root, '')
# Support global file imports, if it's installed already
Expand Down

0 comments on commit ca8ccad

Please sign in to comment.