From e0c07db56fc58abb484479f0fa2d84abfeee82e3 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 31 Jan 2019 08:36:48 +1100 Subject: Backport: 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. Backport of changeset 7246:056ec55eb953. --- test/XiteWin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/XiteWin.py') 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