pythonw is used on OSX python3
authorGP Orcullo <kinsamanka@gmail.com>
Wed, 09 Nov 2022 10:59:00 +0800
branchpython3
changeset 3777 a26453d1c54d
parent 3776 1fbc900ca1ce
child 3778 296e459efdfb
pythonw is used on OSX
LocalRuntimeMixin.py
--- 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")