From f9c8954ed3e7841aec760b3b27396f52dd3a3eba Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Thu, 8 Jul 2021 15:14:30 +0200 Subject: [PATCH] python: improve init on windows CSXCAD adds the dll path as needed on windows install version Signed-off-by: Thorsten Liebig --- python/openEMS/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/openEMS/__init__.py b/python/openEMS/__init__.py index 734aa76..aaca52e 100644 --- a/python/openEMS/__init__.py +++ b/python/openEMS/__init__.py @@ -3,4 +3,7 @@ # Shortcut openEMS import from __future__ import absolute_import +# try to import CSXCAD, e.g. make sure the (windows) dll path are set +import CSXCAD + from openEMS.openEMS import openEMS