From 87ac730c62b9cd7383c4568d10f3796236692c96 Mon Sep 17 00:00:00 2001 From: barentine Date: Fri, 10 Apr 2026 17:27:46 -0700 Subject: [PATCH] python3.11 isn't a .app bundle, this should work for .app bundle or executables both. --- PYME/DSView/dsviewer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PYME/DSView/dsviewer.py b/PYME/DSView/dsviewer.py index 8aa36e383..ab4f6e961 100755 --- a/PYME/DSView/dsviewer.py +++ b/PYME/DSView/dsviewer.py @@ -405,9 +405,9 @@ def OSXActivateKludge(): import os subprocess.Popen(['osascript', '-e', """\ tell application "System Events" - set procName to name of first process whose unix id is %s + set proc to first process whose unix id is %s + set frontmost of proc to true end tell - tell application procName to activate """ % os.getpid()]) class MyApp(wx.App):