Skip to content
Snippets Groups Projects
Commit def44ba7 authored by AlQuemist's avatar AlQuemist
Browse files

rm old Python-API files

parent a1cfe50c
No related branches found
No related tags found
1 merge request!2274PyCore tests; rm old Python API
Python utilities to setup and use BornAgain libraries
1) Installation script
bornagain_python_install.py (Mac only)
2) End-user code
__init__.py
plot_utils.py
to be installed into lib directory. The goal is to have
the directive 'import bornagain' available on Python.
import sys, os
sys.path.append('@BA_MODULES_IMPORT_PATH@')
# 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.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):
os.add_dll_directory(os.path.abspath(p))
from libBornAgainBase import *
from libBornAgainFit import *
from libBornAgainParam import *
from libBornAgainSample import *
from libBornAgainResample import *
from libBornAgainDevice import *
from libBornAgainSim import *
__version__ = "@BornAgain_VERSION@"
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