From 212da1029e9a0ed786b5a1bfaf10183bfef9a790 Mon Sep 17 00:00:00 2001 From: abuckenheimer Date: Tue, 7 Aug 2018 14:48:18 -0400 Subject: [PATCH] disabled auto_reload by default in windows (#1280) --- sanic/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanic/app.py b/sanic/app.py index f9eda2d4..e82028f4 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -671,8 +671,8 @@ class Sanic: """ # Default auto_reload to false auto_reload = False - # If debug is set, default it to true - if debug: + # If debug is set, default it to true (unless on windows) + if debug and os.name == 'posix': auto_reload = True # Allow for overriding either of the defaults auto_reload = kwargs.get("auto_reload", auto_reload)