diff options
author | Neil <nyamatongwe@gmail.com> | 2019-01-31 08:36:48 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-01-31 08:36:48 +1100 |
commit | e0c07db56fc58abb484479f0fa2d84abfeee82e3 (patch) | |
tree | 2e58c9ef7570f09450e4c835629949284fad9841 | |
parent | 1d08f1c50b85db47113a17e758fdd9c573f6b3a2 (diff) | |
download | scintilla-mirror-e0c07db56fc58abb484479f0fa2d84abfeee82e3.tar.gz |
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.
-rw-r--r-- | test/XiteWin.py | 3 |
1 files changed, 2 insertions, 1 deletions
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", |