opm-simulators/python/opm/simulators/__init__.py
Håkon Hægland 8af152dcff Make Python opm package a namespace package
Convert the Python opm package from a regular package to a namespace
package such that opm-simulators and opm-common can contribute to the
package from different filesystem paths. In this way, the two packages
opm.simulators and opm.io (in opm-common) can have a different parent
filesystem path.
2022-06-10 11:37:15 +02:00

13 lines
526 B
Python

# Instead of having the pybind11 extension module, e.g.
# simulators.cpython-310-x86_64-linux-gnu.so located
# directly in the opm directory, we create a package (sub
# directory) with the same name and place it there.
# In this way we can do (if needed in the future)
#
# from opm.simulators import BlackOilSimulator, FoamSimulator, PurePythonUtils, ...
#
# where FoamSimulator and PurePythonUtils does not currently exists,
# but could be possible future extensions..
#
from .simulators import BlackOilSimulator