aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Werkzeug/py3/patches/01-reload.patch
blob: 4700ee180829d56a4ed03becac694018d9bcfda8 (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)
@@ -191,8 +191,8 @@
                 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)

@@ -210,7 +210,7 @@
             # 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