mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
MachoPython. Mainly making sure we don't call routines that don't exist and representing pathnames in a os.separator-neutral format. These shouldn't interfere too much with Just's work on the next generation IDE, I hope.
This commit is contained in:
parent
c71efe0116
commit
815d2bf067
8 changed files with 71 additions and 38 deletions
|
@ -1128,7 +1128,8 @@ def execstring(pytext, globals, locals, filename="<string>", debugging=0,
|
|||
else:
|
||||
PyDebugger.startfromhere()
|
||||
elif not haveThreading:
|
||||
MacOS.EnableAppswitch(0)
|
||||
if hasattr(MacOS, 'EnableAppswitch'):
|
||||
MacOS.EnableAppswitch(0)
|
||||
try:
|
||||
if profiling:
|
||||
import profile, ProfileBrowser
|
||||
|
@ -1145,7 +1146,8 @@ def execstring(pytext, globals, locals, filename="<string>", debugging=0,
|
|||
exec code in globals, locals
|
||||
finally:
|
||||
if not haveThreading:
|
||||
MacOS.EnableAppswitch(-1)
|
||||
if hasattr(MacOS, 'EnableAppswitch'):
|
||||
MacOS.EnableAppswitch(-1)
|
||||
except W.AlertError, detail:
|
||||
raise W.AlertError, detail
|
||||
except (KeyboardInterrupt, BdbQuit):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue