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