We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e214ee commit 9719d9fCopy full SHA for 9719d9f
lite/api/python/__init__.py
@@ -18,5 +18,8 @@
18
if os.name =='nt':
19
current_path = os.path.abspath(os.path.dirname(__file__))
20
third_lib_path = current_path + os.sep + 'libs'
21
- os.environ['path'] = third_lib_path+ ';' + os.environ['path']
22
- sys.path.insert(0, third_lib_path)
+ try:
+ os.add_dll_directory(third_lib_path)
23
+ except AttributeError:
24
+ os.environ['path'] = third_lib_path+ ';' + os.environ['path']
25
+ sys.path.insert(0, third_lib_path)
0 commit comments