Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion traincheck/instrumentor/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def get_module_path_from_file_path(file_path: str, root_module: str) -> str | No
):
return None
# get the path of the module from the file path
path_after_root_module = file_path.split(f"/{root_module}/")[1].split(".py")[0]
path_after_root_module = file_path.rsplit(f"/{root_module}/", 1)[-1].split(".py")[0]
Comment thread
danielryckman marked this conversation as resolved.
Outdated
module_path = f"{root_module}.{path_after_root_module}".replace("/", ".")
return module_path

Expand Down
Loading