diff options
author | Neil <nyamatongwe@gmail.com> | 2022-09-17 14:12:12 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-09-17 14:12:12 +1000 |
commit | 148518380f5a2cc21f0090bdc9d68e67af5b5cc2 (patch) | |
tree | f6b5700b7045231feafb650757cfd0f7fc9f8d18 /test | |
parent | b1695891dfada286943ff9da370908ba7f3cd68d (diff) | |
download | scintilla-mirror-148518380f5a2cc21f0090bdc9d68e67af5b5cc2.tar.gz |
Exit earlier when Scintilla not found - it was continuing and displaying many
failures.
Diffstat (limited to 'test')
-rw-r--r-- | test/XiteWin.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/XiteWin.py b/test/XiteWin.py index c71db04bb..1321448c6 100644 --- a/test/XiteWin.py +++ b/test/XiteWin.py @@ -168,6 +168,17 @@ class XiteWin(): self.face.features.update(faceLex.features) except FileNotFoundError: print("Can't find " + "LexicalStyles.iface") + if scintillaIncludesLexers: + sciName = "SciLexer.DLL" + else: + sciName = "Scintilla.DLL" + try: + scintillaDLLPath = os.path.join(scintillaBinDirectory, sciName) + ctypes.cdll.LoadLibrary(scintillaDLLPath) + except OSError: + print("Can't find " + sciName) + print("Python is built for " + " ".join(platform.architecture())) + sys.exit() self.titleDirty = True self.fullPath = "" @@ -208,17 +219,6 @@ class XiteWin(): def OnCreate(self, hwnd): self.win = hwnd - if scintillaIncludesLexers: - sciName = "SciLexer.DLL" - else: - sciName = "Scintilla.DLL" - try: - scintillaDLLPath = os.path.join(scintillaBinDirectory, sciName) - ctypes.cdll.LoadLibrary(scintillaDLLPath) - except OSError: - print("Can't find " + sciName) - print("Python is built for " + " ".join(platform.architecture())) - sys.exit() self.sciHwnd = user32.CreateWindowExW(0, "Scintilla", "Source", WS_CHILD | WS_VSCROLL | WS_HSCROLL | WS_CLIPCHILDREN, |