Skip to content

Commit 3456adb

Browse files
authored
fix reload paths being restricted to the app dir (#5363)
1 parent 29fb030 commit 3456adb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

reflex/utils/exec.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ def get_reload_paths() -> Sequence[Path]:
305305
module_path = Path(spec.origin).resolve().parent
306306

307307
while module_path.parent.name and any(
308-
sibling_file.name == "__init__.py"
309-
for sibling_file in module_path.parent.iterdir()
308+
sibling_file.name == "__init__.py" for sibling_file in module_path.iterdir()
310309
):
311310
# go up a level to find dir without `__init__.py`
312311
module_path = module_path.parent

0 commit comments

Comments
 (0)