cosmetic fix wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Sun, 01 Jan 2023 22:40:38 +0100
branchwxPython4
changeset 3714 c3a13fcbda3a
parent 3713 cf7c91183995
child 3715 961903c0b76d
cosmetic fix
LocalRuntimeMixin.py
--- a/LocalRuntimeMixin.py	Sun Jan 01 22:39:41 2023 +0100
+++ b/LocalRuntimeMixin.py	Sun Jan 01 22:40:38 2023 +0100
@@ -6,13 +6,12 @@
 import tempfile
 import random
 import shutil
+
 from util.ProcessLogger import ProcessLogger
 from util.paths import Bpath
 
 LocalRuntimeInterpreterPath = \
-    os.environ["BEREMIZPYTHONPATH"] \
-    if os.environ.has_key("BEREMIZPYTHONPATH") \
-    else sys.executable
+    os.environ.get("BEREMIZPYTHONPATH", sys.executable)
 
 class LocalRuntimeMixin():