Skip to content

Commit 51733b2

Browse files
authored
Update __init__.py
1 parent a707d44 commit 51733b2

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

hydromt/__init__.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
# pkg_resource deprication warnings originate from dependencies
77
# so silence them for now
8+
import sys
89
import warnings
910

1011
warnings.filterwarnings("ignore", category=DeprecationWarning)
@@ -16,11 +17,14 @@
1617
from xarray import DataArray, Dataset
1718

1819
# submodules
19-
from . import cli, flw, raster, stats, vector, workflows
20-
from .data_catalog import *
21-
from .io import *
20+
from hydromt import cli, flw, raster, stats, vector, workflows
21+
from hydromt.data_catalog import *
22+
from hydromt.io import *
2223

2324
# high-level methods
24-
from .models import *
25+
from hydromt.models import *
2526

26-
faulthandler.enable()
27+
if sys.stdout is None or sys.stderr is None:
28+
faulthandler.disable()
29+
else:
30+
faulthandler.enable()

0 commit comments

Comments
 (0)