Skip to content
Merged
Changes from all commits
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
5 changes: 4 additions & 1 deletion reflex/utils/exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,10 @@ def get_reload_paths() -> Sequence[Path]:
module_path = module_path.parent

while module_path.parent.name and _has_child_file(module_path, "__init__.py"):
if _has_child_file(module_path, "rxconfig.py"):
if (
_has_child_file(module_path, "rxconfig.py")
and module_path == Path.cwd()
):
init_file = module_path / "__init__.py"
init_file_content = init_file.read_text()
if init_file_content.strip():
Expand Down