Commit 76f9ea39 authored by AlQuemist's avatar AlQuemist Committed by Wuttke, Joachim
Browse files

SWIG: Correct '' for Windows

On Windows, the paths to the DLL files must be added via `os.add_dll_directory`;
otherwise, the module cannot be loaded.
parent 404b94ef
# init file for the Python package
# init file for the testing the Python package
import sys, os
# version
from .pynsx import *
# this is needed to adapt to the changes in Python 3.8 on Windows regarding dll loading
# see
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 and os.path.exists(p):
from .pyohkl import *
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment