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.
This commit is contained in:
Jack Jansen 2002-08-15 21:48:16 +00:00
parent 81204152d4
commit 87eea88b5a
27 changed files with 54 additions and 0 deletions

View file

@ -44,6 +44,8 @@ def main():
scanner.scan()
scanner.gentypetest(SHORT+"typetest.py")
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! ==="