Skip to content
Snippets Groups Projects
Commit 4bcec9c6 authored by Boman Romain's avatar Boman Romain
Browse files

Merge branch 'boman' into 'master'

fix missing dll path for os.add_dll_directory + print debug info

See merge request !9
parents 6235f59d a3922dc3
No related branches found
No related tags found
1 merge request!9fix missing dll path for os.add_dll_directory + print debug info
Pipeline #17343 passed
......@@ -124,12 +124,18 @@ def initDLL():
# For new versions of python, DLLs must be loaded via a specific command
import platform, os, sys
if 'Windows' in platform.uname() and sys.version_info.minor >= 8:
lookfor = ['tbb', 'mkl', 'vtk']
lookfor = ['tbb', 'mkl', 'vtk', 'mumps', 'compiler']
for k in lookfor:
print(f'[initDLL] looking for {k}')
found=False
for v in os.environ['path'].split(';'):
if k in v.lower():
print(f'[initDLL]\tos.add_dll_directory("{v}")')
os.add_dll_directory(v)
found=True
break
if not found:
print('[initDLL]**WARNING: {k} dll path not found!')
# ------------------------------------------------------------------------------
......@@ -158,7 +164,7 @@ def initMKL(verb=False):
for s in ['OMP', 'MKL', 'KMP']:
print('* %s environment:' % s)
for key, value in os.environ.items():
if s in key:
if s+'_' in key:
print(' %s = %s' % (key, value))
print('')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment