Commit 5b30466f authored by Michael Davidsaver's avatar Michael Davidsaver

example add_dll_directory

needed on windows for py>=3.8
parent 8202cc3a
......@@ -5,10 +5,13 @@ import sys, os
def fixpath():
path = os.environ.get('PATH', '').split(os.pathsep)
moddir = os.path.dirname(__file__)
path.append(os.path.join(moddir, 'lib'))
libdir = os.path.join(os.path.dirname(__file__), 'lib')
path.append(libdir)
os.environ['PATH'] = os.pathsep.join(path)
if hasattr(os, 'add_dll_directory'):
os.add_dll_directory(libdir)
if sys.platform == "win32":
fixpath()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment