Skip to content

Commit 79d6e4c

Browse files
committed
Update code_utils.py
1 parent bc44a2f commit 79d6e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/code_utils/code_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def get_qualified_name(module_name: str, full_qualified_name: str) -> str:
109109
return full_qualified_name[len(module_name) + 1 :]
110110

111111

112-
def module_name_from_file_path(file_path: Path, project_root_path: Path, *, traverse_up: bool = True) -> str:
112+
def module_name_from_file_path(file_path: Path, project_root_path: Path, *, traverse_up: bool = False) -> str:
113113
try:
114114
relative_path = file_path.relative_to(project_root_path)
115115
return relative_path.with_suffix("").as_posix().replace("/", ".")

0 commit comments

Comments
 (0)