mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
fix dll loading path on Windows with Python 3.10
This commit is contained in:
parent
7eb76b67c7
commit
5acb38eabd
@ -6,7 +6,8 @@ _netgen_bin_dir=os.path.realpath(os.path.join(os.path.dirname(__file__),'..',con
|
||||
_netgen_lib_dir=os.path.realpath(os.path.join(os.path.dirname(__file__),'..',config.NETGEN_PYTHON_RPATH))
|
||||
|
||||
if sys.platform.startswith('win'):
|
||||
if sys.version >= '3.8':
|
||||
v = sys.version_info
|
||||
if v.major == 3 and v.minor >= 8:
|
||||
os.add_dll_directory(_netgen_bin_dir)
|
||||
else:
|
||||
os.environ['PATH'] += ';'+_netgen_bin_dir
|
||||
|
Loading…
Reference in New Issue
Block a user