Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96b64d0

Browse files
author
Just van Rossum
committed
open res file(s) read only; upped __version__ -- jvr
1 parent 43b34da commit 96b64d0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Mac/Tools/IDE/PythonIDE.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# keep this (__main__) as clean as possible, since we are using
44
# it like the "normal" interpreter.
55

6-
__version__ = '1.0b2'
6+
__version__ = '1.0b3'
77

88

99
def init():
@@ -18,15 +18,15 @@ def init():
1818
Res.GetResource('DITL', 468)
1919
except Res.Error:
2020
# we're not an applet
21-
Res.OpenResFile(os.path.join(sys.exec_prefix, ":Mac:Tools:IDE:PythonIDE.rsrc"))
22-
Res.OpenResFile(os.path.join(sys.exec_prefix, ":Mac:Tools:IDE:Widgets.rsrc"))
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)
2323
ide_path = os.path.join(sys.exec_prefix, ":Mac:Tools:IDE")
2424
else:
2525
# we're an applet
2626
try:
2727
Res.GetResource('CURS', 468)
2828
except Res.Error:
29-
Res.OpenResFile(os.path.join(sys.exec_prefix, ":Mac:Tools:IDE:Widgets.rsrc"))
29+
Res.FSpOpenResFile(os.path.join(sys.exec_prefix, ":Mac:Tools:IDE:Widgets.rsrc"), 1)
3030
ide_path = os.path.join(sys.exec_prefix, ":Mac:Tools:IDE")
3131
else:
3232
# we're a full blown applet

0 commit comments

Comments
 (0)