Skip to content

Commit 46ad16d

Browse files
Use correct Flet viewer path when installed from a source package (#675)
Fix #495
1 parent 89364ed commit 46ad16d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdk/python/flet/flet.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,10 @@ def _open_flet_view(page_url, hidden):
380380
else:
381381
# check if flet.exe is in PATH (flet developer mode)
382382
flet_path = which(flet_exe, sys.argv[0])
383-
if flet_path:
383+
if (
384+
flet_path
385+
and Path(flet_path).parent.joinpath("flutter_windows.dll").exists()
386+
):
384387
logging.info(f"Flet View found in PATH: {flet_path}")
385388
else:
386389
if not temp_flet_dir.exists():

0 commit comments

Comments
 (0)