Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
979
def
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
run
Method · 0.90
Calls
1
join
Function · 0.85
Tested by
no test coverage detected