aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Werkzeug/py2/patches/01-reload.patch
blob: 55bc5e1a7e04bf7d152e9136db0e8aff4fe17910 (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/py2/werkzeug/_reloader.py	(index)
+++ contrib/python/Werkzeug/py2/werkzeug/_reloader.py	(working tree)
@@ -89,8 +89,8 @@ def _get_args_for_reloading():
                 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)
 
@@ -114,7 +114,7 @@ def _get_args_for_reloading():
                 # 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