Compiletest for non-Windows systems
This commit is contained in:
parent
085e335969
commit
2654b61bd7
3
build/compiletest.py
Normal file → Executable file
3
build/compiletest.py
Normal file → Executable file
|
@ -16,5 +16,8 @@ for filename in matches:
|
||||||
try:
|
try:
|
||||||
compile(source, filename, 'exec')
|
compile(source, filename, 'exec')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
if 'win' in sys.platform:
|
||||||
ctypes.windll.user32.MessageBoxA(0, traceback.format_exc(), "Exception in " + filename, 1)
|
ctypes.windll.user32.MessageBoxA(0, traceback.format_exc(), "Exception in " + filename, 1)
|
||||||
|
else:
|
||||||
|
print "Exception in %s: %s" % (filename, traceback.format_exc())
|
||||||
sys.exit(1)
|
sys.exit(1)
|
Loading…
Reference in New Issue
Block a user