mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
Bugfix on Windows with Python>=3.8
Use os.add_dll_directory() instead of adding netgen bin dir to PATH
This commit is contained in:
parent
2d03739f4e
commit
c2c0bbcbf5
@ -5,7 +5,10 @@ _netgen_bin_dir=os.path.realpath(os.path.join(os.path.dirname(__file__),'..','@N
|
||||
_netgen_lib_dir=os.path.realpath(os.path.join(os.path.dirname(__file__),'..','@NETGEN_PYTHON_RPATH@'))
|
||||
|
||||
if sys.platform.startswith('win'):
|
||||
os.environ['PATH'] += ';'+os.path.realpath(os.path.join(os.path.dirname(__file__),'../../../bin'))
|
||||
if sys.version >= '3.8':
|
||||
os.add_dll_directory(_netgen_bin_dir)
|
||||
else:
|
||||
os.environ['PATH'] += ';'+_netgen_bin_dir
|
||||
|
||||
del sys
|
||||
del os
|
||||
|
Loading…
Reference in New Issue
Block a user