Skip to content

Commit 741817d

Browse files
committed
Ref
1 parent 37f406c commit 741817d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sentry/issues/auto_source_code_config/code_mapping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,16 +593,16 @@ def get_path_from_module(module: str, abs_path: str) -> tuple[str, str]:
593593

594594
# Gets rid of the class name
595595
parts = module.rsplit(".", 1)[0].split(".")
596+
dirpath = "/".join(parts)
596597

597598
if len(parts) >= STACK_ROOT_MAX_LEVEL:
598599
# com.example.foo.bar.Baz$InnerClass, Baz.kt ->
599600
# stack_root: com/example/
600601
# file_path: com/example/foo/bar/Baz.kt
601602
stack_root = "/".join(parts[:STACK_ROOT_MAX_LEVEL])
602-
file_path = "/".join(parts) + "/" + abs_path
603603
else:
604604
# a.Bar, Bar.kt -> stack_root: a/, file_path: a/Bar.kt
605605
stack_root = parts[0] + "/"
606-
file_path = f"{stack_root}{abs_path}"
607606

607+
file_path = f"{dirpath}/{abs_path}"
608608
return stack_root, file_path

0 commit comments

Comments
 (0)