Skip to content

Commit

Permalink
update dist-package
Browse files Browse the repository at this point in the history
  • Loading branch information
dnth committed Nov 13, 2024
1 parent 9f7df0e commit f70a305
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xinfer/optional_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ def soft_import(name: str):
module
and hasattr(module, "__file__")
and module.__file__ is not None
and "site-packages" in str(module.__file__)
and (
"site-packages" in str(module.__file__)
or "dist-packages" in str(module.__file__)
)
):
return True
return False
Expand Down

0 comments on commit f70a305

Please sign in to comment.