[3.11] gh-137586: Open external osascript program with absolute path (GH-137584) by miss-islington · Pull Request #148176 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/test/test_webbrowser.py
2 changes: 1 addition & 1 deletion Lib/turtledemo/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def __init__(self, filename=None):
# so that our menu bar appears.
subprocess.run(
[
'osascript',
'/usr/bin/osascript',
'-e', 'tell application "System Events"',
'-e', 'set frontmost of the first process whose '
'unix id is {} to true'.format(os.getpid()),
Expand Down
2 changes: 1 addition & 1 deletion Lib/webbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ def open(self, url, new=0, autoraise=True):
end
'''%(self.name, url.replace('"', '%22'))

osapipe = os.popen("osascript", "w")
osapipe = os.popen("/usr/bin/osascript", "w")
if osapipe is None:
return False

Expand Down
Loading