Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • am-dept/amfe
  • Paul.Dechamps/amfe
2 results
Show changes
Commits on Source (1)
......@@ -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('')
......