Skip to content

Commit 184538c

Browse files
authored
Merge c3aba71 into 856adec
2 parents 856adec + c3aba71 commit 184538c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

source/louisHelper.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
#louisHelper.py
2-
#A part of NonVisual Desktop Access (NVDA)
3-
#This file is covered by the GNU General Public License.
4-
#See the file COPYING for more details.
5-
#Copyright (C) 2018 NV Access Limited, Babbage B.V.
1+
# louisHelper.py
2+
# A part of NonVisual Desktop Access (NVDA)
3+
# This file is covered by the GNU General Public License.
4+
# See the file COPYING for more details.
5+
# Copyright (C) 2018-2021 NV Access Limited, Babbage B.V., Joseph Lee
66

77
"""Helper module to ease communication to and from liblouis."""
88

9-
import louis
9+
# Python 3.8 changes the way DLL's are loaded due to security.
10+
# Thus manually add NVDA executable path to DLL lookup path for loading liblouis.dll.
11+
import os
12+
with os.add_dll_directory(os.path.dirname(__file__)):
13+
import louis
1014
from logHandler import log
1115
import config
1216

0 commit comments

Comments
 (0)