Skip to content

Commit 64cfb3a

Browse files
committed
Import submodules automatically
1 parent 14ed66b commit 64cfb3a

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

src/imcflibs/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,14 @@
2222
"""
2323

2424
__version__ = "${project.version}"
25+
26+
from . import iotools
27+
from . import log
28+
from . import pathtools
29+
from . import strtools
30+
31+
# check if we're running in Jython, then also import the 'imagej' submodule:
32+
import platform as _python_platform
33+
if _python_platform.python_implementation() == "Jython":
34+
from . import imagej
35+
del _python_platform

src/imcflibs/imagej/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""ImageJ related functions, mostly convenience wrappers and combined workflows.
2+
3+
NOTE: this is only useful for Python (actually Jython) running within Fiji / ImageJ
4+
and therefore will not be imported by the main 'imcflibs' package unless that
5+
particular environment is detected.
6+
"""
7+
8+
from . import bioformats
9+
from . import misc
10+
from . import prefs
11+
from . import projections
12+
from . import shading
13+
from . import sjlog
14+
from . import split
15+
from . import stitching

0 commit comments

Comments
 (0)