Skip to content
Snippets Groups Projects
Commit 6a2c7476 authored by Ammar Nejati's avatar Ammar Nejati
Browse files

Correct the Python import statements

The addition of the path of `BA/Wrap/Python/__init__.py` to `os.path`
is _not_ necessary anymore.

The import statements need to be changed:
```
import ba_plot -> from bornagain import ba_plot
import ba_fitmonitor -> from bornagain import ba_fitmonitor
```

The root-path of the project is correctly set in the shell script
`thisbornagain.sh`.

Consult e.g. "The Definitive Guide to Python import Statements" <https://chrisyeh96.github.io/2017/08/08/definitive-guide-python-imports.html>

Tested under Debian Buster, Python 3.7.3.

Resolves issue #1198
parent 4d3a1214
No related branches found
No related tags found
1 merge request!105Correct the Python import statements
Pipeline #38642 passed
Showing
with 22 additions and 28 deletions
Loading
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