mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Replaced OpenResFile calls with FSpOpenResFile calls (which are carbon-compatible).
This commit is contained in:
parent
3c0d013db4
commit
d13c385462
14 changed files with 21 additions and 21 deletions
|
|
@ -19,7 +19,7 @@ dstfilename = os.path.join(sys.exec_prefix, "Python IDE")
|
|||
|
||||
buildtools.process(template, mainfilename, dstfilename, 1)
|
||||
|
||||
targetref = Res.OpenResFile(dstfilename)
|
||||
targetref = Res.FSpOpenResFile(dstfilename, 3)
|
||||
Res.UseResFile(targetref)
|
||||
|
||||
files = os.listdir(ide_home)
|
||||
|
|
@ -36,6 +36,6 @@ for name in files:
|
|||
ispackage=0)
|
||||
|
||||
# add W resources
|
||||
wresref = Res.OpenResFile(os.path.join(ide_home, "Widgets.rsrc"))
|
||||
wresref = Res.FSpOpenResFile(os.path.join(ide_home, "Widgets.rsrc"), 1)
|
||||
buildtools.copyres(wresref, targetref, [], 0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue