Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed May 29, 2024
1 parent 7ae1065 commit af731cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/xdoctest/utils/util_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,12 +826,12 @@ def modname_to_modpath(modname, hide_init=True, hide_main=False, sys_path=None):
else:
# import xdev
# with xdev.embed_on_exception_context:
try:
modpath = _importlib_modname_to_modpath(modname)
except Exception:
modpath = _syspath_modname_to_modpath(modname, sys_path)
# try:
# modpath = _importlib_modname_to_modpath(modname)
# except Exception:
# modpath = _syspath_modname_to_modpath(modname, sys_path)
# modpath = _pkgutil_modname_to_modpath(modname, sys_path)
# modpath = _syspath_modname_to_modpath(modname, sys_path)
modpath = _syspath_modname_to_modpath(modname, sys_path)

if modpath is None:
return None
Expand Down

0 comments on commit af731cc

Please sign in to comment.