aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Werkzeug/py3/patches/01-reload.patch
blob: 98fdbeb9cb175ac18ae0cc7f210e682c90e477ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- contrib/python/Werkzeug/py3/werkzeug/_reloader.py	(index)
+++ contrib/python/Werkzeug/py3/werkzeug/_reloader.py	(working tree)
@@ -167,8 +167,8 @@ def _get_args_for_reloading() -> t.List[str]:
                 py_script += ".exe"
 
             if (
-                os.path.splitext(sys.executable)[1] == ".exe"
-                and os.path.splitext(py_script)[1] == ".exe"
+                (os.path.splitext(sys.executable)[1] == ".exe"
+                 and os.path.splitext(py_script)[1] == ".exe") or getattr(sys, "is_standalone_binary", False)
             ):
                 rv.pop(0)
 
@@ -192,7 +192,7 @@ def _get_args_for_reloading() -> t.List[str]:
                 # Incorrectly rewritten by pydevd debugger from "-m script" to "script".
                 py_module = py_script
 
-            rv.extend(("-m", py_module.lstrip(".")))
+            #rv.extend(("-m", py_module.lstrip(".")))
 
     rv.extend(args)
     return rv