| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3d724dd commit a0c57a8
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -351,7 +351,7 @@ def test_default_open(self): | |||
| 351 | 351 | url = "https://python.org" | |
| 352 | 352 | self.browser.open(url) | |
| 353 | 353 | self.assertTrue(self.popen_pipe._closed) | |
| 354 | - self.assertEqual(self.popen_pipe.cmd, "osascript") | ||
| 354 | + self.assertEqual(self.popen_pipe.cmd, "/usr/bin/osascript") | ||
| 355 | 355 | script = self.popen_pipe.pipe.getvalue() | |
| 356 | 356 | self.assertEqual(script.strip(), f'open location "{url}"') | |
| 357 | 357 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -136,7 +136,7 @@ def __init__(self, filename=None): | |||
| 136 | 136 | # so that our menu bar appears. | |
| 137 | 137 | subprocess.run( | |
| 138 | 138 | [ | |
| 139 | - 'osascript', | ||
| 139 | + '/usr/bin/osascript', | ||
| 140 | 140 | '-e', 'tell application "System Events"', | |
| 141 | 141 | '-e', 'set frontmost of the first process whose ' | |
| 142 | 142 | 'unix id is {} to true'.format(os.getpid()), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -656,7 +656,7 @@ def open(self, url, new=0, autoraise=True): | |||
| 656 | 656 | end | |
| 657 | 657 | ''' | |
| 658 | 658 | ||
| 659 | - osapipe = os.popen("osascript", "w") | ||
| 659 | + osapipe = os.popen("/usr/bin/osascript", "w") | ||
| 660 | 660 | if osapipe is None: | |
| 661 | 661 | return False | |
| 662 | 662 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + Invoke :program:`osascript` with absolute path in :mod:`webbrowser` and :mod:`!turtledemo`. | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments