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

Function get_package_dir

pydevd_file_utils.py:979–984  ·  view source on GitHub ↗
(mod_name)

Source from the content-addressed store, hash-verified

977
978
979def get_package_dir(mod_name):
980 for path in sys.path:
981 mod_path = join(path, mod_name.replace(".", "/"))
982 if os.path.isdir(mod_path):
983 return mod_path
984 return None

Callers 1

runMethod · 0.90

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected