We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1befdd commit 069a205Copy full SHA for 069a205
solara/__main__.py
@@ -341,7 +341,14 @@ def run(
341
reload_excludes = restart_excludes if restart_excludes else []
342
del restart_excludes
343
reload_excludes = [str(solara_root / "website"), str(solara_root / "template")]
344
- reload_excludes.append(app)
+ app_path = Path(app)
345
+ if app_path.exists():
346
+ # if app is not a child of the current working directory
347
+ # uvcorn crashes
348
+ if str(app_path.resolve()).startswith(str(Path.cwd().resolve())):
349
+ reload_excludes.append(str(app_path.resolve()))
350
+ print("reload_excludes", reload_excludes)
351
+ del app_path
352
del solara_root
353
reload = True
354
# avoid sending many restarts
0 commit comments