Skip to content
Snippets Groups Projects
Commit d55213c2 authored by Beerwerth, Randolf's avatar Beerwerth, Randolf
Browse files

Adapt to modified dll loading procedure in Python 3.8 on Windows

parent 6b0b5b5f
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,14 @@ sys.path.append(os.path.abspath( ...@@ -7,6 +7,14 @@ sys.path.append(os.path.abspath(
# this line needed to fix python3 import problem # this line needed to fix python3 import problem
sys.path.append(os.path.abspath(os.path.dirname(__file__))) sys.path.append(os.path.abspath(os.path.dirname(__file__)))
# this is needed to adapt to the changed dll import in Python 3.8 and Windows
# https://docs.python.org/3/whatsnew/3.8.html#ctypes
if sys.version_info >= (3, 8, 0) and sys.platform == 'win32':
if "PATH" in os.environ:
for p in os.environ['PATH'].split(';'):
if p:
os.add_dll_directory(p)
from libBornAgainFit import * from libBornAgainFit import *
from libBornAgainCore import * from libBornAgainCore import *
......
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