summaryrefslogtreecommitdiff
path: root/silx/sx/__init__.py
diff options
context:
space:
mode:
authorPicca Frédéric-Emmanuel <picca@debian.org>2017-10-07 07:59:01 +0200
committerPicca Frédéric-Emmanuel <picca@debian.org>2017-10-07 07:59:01 +0200
commitbfa4dba15485b4192f8bbe13345e9658c97ecf76 (patch)
treefb9c6e5860881fbde902f7cbdbd41dc4a3a9fb5d /silx/sx/__init__.py
parentf7bdc2acff3c13a6d632c28c4569690ab106eed7 (diff)
New upstream version 0.6.0+dfsg
Diffstat (limited to 'silx/sx/__init__.py')
-rw-r--r--silx/sx/__init__.py4
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