After generating the Python file with definitions try to run it, so
we catch errors during the build process in stead of later during runtime.
diff --git a/Mac/Modules/res/resscan.py b/Mac/Modules/res/resscan.py
index cf4bcb1..51bf38d 100644
--- a/Mac/Modules/res/resscan.py
+++ b/Mac/Modules/res/resscan.py
@@ -19,6 +19,8 @@
scanner = ResourcesScanner(input, output, defsoutput)
scanner.scan()
scanner.close()
+ print "=== Testing definitions output code ==="
+ execfile(defsoutput, {}, {})
print "=== Done scanning and generating, now doing 'import ressupport' ==="
import ressupport
print "=== Done 'import ressupport'. It's up to you to compile Resmodule.c ==="