diff Mac/Modules/htmlrender/htmlscan.py @ 24849:3c9c56d97e55 legacy-trunk

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.
author Jack Jansen <jack.jansen@cwi.nl>
date Thu, 15 Aug 2002 21:48:16 +0000
parents 3e718c3d51ef
children
line wrap: on
line diff
--- a/Mac/Modules/htmlrender/htmlscan.py	Thu Aug 15 21:31:18 2002 +0000
+++ b/Mac/Modules/htmlrender/htmlscan.py	Thu Aug 15 21:48:16 2002 +0000
@@ -19,6 +19,8 @@
 	scanner = MyScanner(input, output, defsoutput)
 	scanner.scan()
 	scanner.close()
+	print "=== Testing definitions output code ==="
+	execfile(defsoutput, {}, {})
 	print "=== Done scanning and generating, now importing the generated code... ==="
 	exec "import " + SHORT + "support"
 	print "=== Done.  It's up to you to compile it now! ==="