From 08ad67499ef0a3c36b2197a9f5d0381398931dd1 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 31 Jan 2019 08:36:48 +1100 Subject: When loading SciLexer.DLL fails, print out the platform architecture of Python as one problem is trying to run 64-bit Python with a 32-bit DLL or vice versa. --- test/XiteWin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/XiteWin.py b/test/XiteWin.py index 77bb313d7..ba41afac9 100644 --- a/test/XiteWin.py +++ b/test/XiteWin.py @@ -4,7 +4,7 @@ from __future__ import with_statement from __future__ import unicode_literals -import os, sys, unittest +import os, platform, sys, unittest import ctypes from ctypes import wintypes @@ -188,6 +188,7 @@ class XiteWin(): x = ctypes.windll.SciLexer.Scintilla_DirectFunction except OSError: print("Can't find SciLexer.DLL") + print("Python is built for " + " ".join(platform.architecture())) sys.exit() self.sciHwnd = user32.CreateWindowExW(0, "Scintilla", "Source", -- cgit v1.2.3