From 2654b61bd721b97dd17e7bc4a4f71a55ea3e546f Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Wed, 11 Jan 2017 14:21:53 +0100 Subject: [PATCH] Compiletest for non-Windows systems --- build/compiletest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 100755 build/compiletest.py diff --git a/build/compiletest.py b/build/compiletest.py old mode 100644 new mode 100755 index 91df6c5e..fdbf7db1 --- a/build/compiletest.py +++ b/build/compiletest.py @@ -16,5 +16,8 @@ for filename in matches: try: compile(source, filename, 'exec') except Exception as e: - ctypes.windll.user32.MessageBoxA(0, traceback.format_exc(), "Exception in " + filename, 1) - sys.exit(1) \ No newline at end of file + if 'win' in sys.platform: + 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)