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 | 08ad67499ef0a3c36b2197a9f5d0381398931dd1 (patch) | |
tree | 0551cee08657b74f1405f4eb5f5bd81ebc980e9e /test/XiteWin.py | |
parent | 8765feaff03dec307a01fdb42e069374f0ebd0eb (diff) | |
download | scintilla-mirror-08ad67499ef0a3c36b2197a9f5d0381398931dd1.tar.gz |
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.
Diffstat (limited to 'test/XiteWin.py')
-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", |