diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-10-16 11:19:43 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-10-16 11:19:43 +1100 | 
| commit | a2df794e3e36b7105142ccffc0486362da983e2d (patch) | |
| tree | 176e43fceb488b50c271b4e8949da009f3a71410 /test | |
| parent | 69c098c6c4463bebca4915459da805717052ab6c (diff) | |
| download | scintilla-mirror-a2df794e3e36b7105142ccffc0486362da983e2d.tar.gz | |
Backport: Call LoadLibrary with DLL path as Python 3.8 doesn't look for DLLs in PATH.
Backport of changeset 7706:dd931f5c1d93.
Diffstat (limited to 'test')
| -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())) | 
