From de36798477a84dcd20a77b527e13efdf4e93a4c8 Mon Sep 17 00:00:00 2001 From: Dustella Date: Tue, 11 Feb 2025 13:52:19 +0800 Subject: [PATCH] fix hot reloading on linux --- src/quart/utils.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/quart/utils.py b/src/quart/utils.py index 3669295..ed868e8 100644 --- a/src/quart/utils.py +++ b/src/quart/utils.py @@ -153,12 +153,7 @@ def restart() -> None: # python run.py args = [str(script_path), *args] else: - if script_path.is_file() and os.access(script_path, os.X_OK): - # hypercorn run:app --reload - executable = str(script_path) - else: - # python run.py - args = [str(script_path), *args] + args = [str(script_path), *args] else: # Executed as a module e.g. python -m run module = script_path.stem