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

fix python 3.7 compatibility

parent c187d9c1
No related branches found
No related tags found
1 merge request!67v2.2.1 - Update windows build and TBB
Pipeline #4172 passed
...@@ -126,8 +126,8 @@ def findbins(modname, dirB=['build','wavesB'], verb=False): # changer wavesB en ...@@ -126,8 +126,8 @@ def findbins(modname, dirB=['build','wavesB'], verb=False): # changer wavesB en
def initDLL(): def initDLL():
# For new versions of python, DLLs must be loaded via a specific command # For new versions of python, DLLs must be loaded via a specific command
import platform, os import platform, os, sys
if 'Windows' in platform.uname(): if 'Windows' in platform.uname() and sys.version_info.minor >= 8:
lookfor = ['tbb', 'mkl', 'vtk'] lookfor = ['tbb', 'mkl', 'vtk']
for k in lookfor: for k in lookfor:
for v in os.environ['path'].split(';'): for v in os.environ['path'].split(';'):
......
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