Skip to content
Snippets Groups Projects
Commit 2cbcdb2f authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Wrap/Python/src/bornagain/lib/__init__.py, simplify as we only support Python >= 3.8

parent d8ea93a9
Branches
Tags
1 merge request!2846Py wrappers: + message, rm old version switch
Pipeline #186379 passed
...@@ -19,10 +19,7 @@ BA_EXTRALIBPATH = os.path.join(BA_LIBPATH, 'extra') # Extra dependencies ...@@ -19,10 +19,7 @@ BA_EXTRALIBPATH = os.path.join(BA_LIBPATH, 'extra') # Extra dependencies
sys.path.append(BA_LIBPATH) sys.path.append(BA_LIBPATH)
sys.path.append(BA_EXTRALIBPATH) sys.path.append(BA_EXTRALIBPATH)
if sys.platform == 'win32':
# this is needed to adapt to the changes in Python 3.8 on Windows regarding dll loading
# see https://docs.python.org/3/whatsnew/3.8.html#ctypes
if sys.platform == 'win32' and sys.version_info >= (3, 8, 0):
os.add_dll_directory(BA_EXTRALIBPATH) os.add_dll_directory(BA_EXTRALIBPATH)
# import all available BornAgain functionality # import all available BornAgain functionality
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment