diff options
-rw-r--r-- | test/XiteWin.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/XiteWin.py b/test/XiteWin.py index ba41afac9..398c9a525 100644 --- a/test/XiteWin.py +++ b/test/XiteWin.py @@ -25,8 +25,6 @@ sys.path.append(scintillaScriptsDirectory) import Face scintillaBinDirectory = os.path.join(scintillaDirectory, "bin") -os.environ['PATH'] = os.environ['PATH'] + ";" + scintillaBinDirectory -#print(os.environ['PATH']) WFUNC = ctypes.WINFUNCTYPE(c_int, HWND, c_uint, WPARAM, LPARAM) @@ -183,9 +181,9 @@ class XiteWin(): def OnCreate(self, hwnd): self.win = hwnd - # Side effect: loads the DLL try: - x = ctypes.windll.SciLexer.Scintilla_DirectFunction + scintillaDLLPath = os.path.join(scintillaBinDirectory, "SciLexer.DLL") + ctypes.cdll.LoadLibrary(scintillaDLLPath) except OSError: print("Can't find SciLexer.DLL") print("Python is built for " + " ".join(platform.architecture())) |