LocalRuntimeMixin.py
branchpython3
changeset 3777 a26453d1c54d
parent 3721 6365e33fb11f
child 3847 832c257d5618
--- a/LocalRuntimeMixin.py	Sun Oct 30 13:20:58 2022 +0800
+++ b/LocalRuntimeMixin.py	Wed Nov 09 10:59:00 2022 +0800
@@ -10,8 +10,8 @@
 from util.ProcessLogger import ProcessLogger
 from util.paths import Bpath
 
-LocalRuntimeInterpreterPath = \
-    os.environ.get("BEREMIZPYTHONPATH", sys.executable)
+_exec = sys.executable if "darwin" not in sys.platform else sys.executable + 'w'
+LocalRuntimeInterpreterPath = os.environ.get("BEREMIZPYTHONPATH", _exec)
 
 LocalHost = os.environ.get("BEREMIZ_LOCAL_HOST", "localhost")