1 # copyright 1996-1999 Just van Rossum, Letterror. just@letterror.com
3 # keep this (__main__) as clean as possible, since we are using
4 # it like the "normal" interpreter.
11 MacOS
.EnableAppswitch(-1)
14 Qd
.SetCursor(Qd
.GetCursor(QuickDraw
.watchCursor
).data
)
18 Res
.GetResource('DITL', 468)
21 Res
.FSpOpenResFile(os
.path
.join(sys
.exec_prefix
, ":Mac:Tools:IDE:PythonIDE.rsrc"), 1)
22 Res
.FSpOpenResFile(os
.path
.join(sys
.exec_prefix
, ":Mac:Tools:IDE:Widgets.rsrc"), 1)
23 ide_path
= os
.path
.join(sys
.exec_prefix
, ":Mac:Tools:IDE")
27 Res
.GetResource('CURS', 468)
29 Res
.FSpOpenResFile(os
.path
.join(sys
.exec_prefix
, ":Mac:Tools:IDE:Widgets.rsrc"), 1)
30 ide_path
= os
.path
.join(sys
.exec_prefix
, ":Mac:Tools:IDE")
32 # we're a full blown applet
33 ide_path
= sys
.argv
[0]
34 if ide_path
not in sys
.path
:
35 sys
.path
.insert(0, ide_path
)