mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix for #1905: PythonLauncher not working correctly on OSX 10.5/Leopard
This fixes both Python Launchar and the terminalcommand module.
This commit is contained in:
parent
6780a9dd9f
commit
f2ef92cee7
4 changed files with 45 additions and 103 deletions
|
@ -1,6 +1,7 @@
|
|||
# Generated from 'AEDataModel.h'
|
||||
|
||||
def FOUR_CHAR_CODE(x): return x
|
||||
typeApplicationBundleID = FOUR_CHAR_CODE('bund')
|
||||
typeBoolean = FOUR_CHAR_CODE('bool')
|
||||
typeChar = FOUR_CHAR_CODE('TEXT')
|
||||
typeSInt16 = FOUR_CHAR_CODE('shor')
|
||||
|
|
|
@ -27,7 +27,7 @@ SEND_MODE = kAENoReply # kAEWaitReply hangs when run from Terminal.app itself
|
|||
|
||||
def run(command):
|
||||
"""Run a shell command in a new Terminal.app window."""
|
||||
termAddress = AE.AECreateDesc(typeApplSignature, TERMINAL_SIG)
|
||||
termAddress = AE.AECreateDesc(typeApplicationBundleID, "com.apple.Terminal")
|
||||
theEvent = AE.AECreateAppleEvent(kAECoreSuite, kAEDoScript, termAddress,
|
||||
kAutoGenerateReturnID, kAnyTransactionID)
|
||||
commandDesc = AE.AECreateDesc(typeChar, command)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue