Use the new macresource module to open the accompanying resource file (if needed).
diff --git a/Mac/scripts/fullbuild.py b/Mac/scripts/fullbuild.py
index f5ccfc9..8954739 100644
--- a/Mac/scripts/fullbuild.py
+++ b/Mac/scripts/fullbuild.py
@@ -19,6 +19,7 @@
import re
import string
import genpluginprojects
+import macresource
import aetools
from Carbon import AppleEvents
@@ -369,11 +370,7 @@
fp.close()
def main():
- try:
- h = Res.FSpOpenResFile('fullbuild.rsrc', 1)
- except Res.Error:
- pass # Assume we already have acces to our own resource
-
+ macresource.need('DLOG', DIALOG_ID, 'fullbuild.rsrc')
dir, ok = macfs.GetDirectory('Python source folder:')
if not ok:
sys.exit(0)