MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / get_fullname

Function get_fullname

pydevd_file_utils.py:967–976  ·  view source on GitHub ↗
(mod_name)

Source from the content-addressed store, hash-verified

965
966
967def get_fullname(mod_name):
968 try:
969 import importlib.util
970
971 spec = importlib.util.find_spec(mod_name)
972 if spec is not None and spec.origin is not None and spec.has_location:
973 return spec.origin
974 except (ImportError, ModuleNotFoundError, ValueError):
975 pass
976 return None
977
978
979def get_package_dir(mod_name):

Callers 3

runMethod · 0.90
run_fileFunction · 0.90
test_get_fullnameFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_get_fullnameFunction · 0.72