Skip to content
Snippets Groups Projects

Correct the Python import statements

Merged Ammar Nejati requested to merge PythonImportProblem into develop

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.

Fixes issue #1198

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading