diff options
Diffstat (limited to 'silx/sx/__init__.py')
-rw-r--r-- | silx/sx/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/silx/sx/__init__.py b/silx/sx/__init__.py index 55fa40e..87bfb9e 100644 --- a/silx/sx/__init__.py +++ b/silx/sx/__init__.py @@ -44,6 +44,10 @@ import sys as _sys _logger = logging.getLogger(__name__) +# Init logging when used from the console +if hasattr(_sys, 'ps1'): + logging.basicConfig() + # Probe ipython try: from IPython import get_ipython as _get_ipython |