diff options
author | Picca Frédéric-Emmanuel <picca@debian.org> | 2017-10-07 07:59:01 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@debian.org> | 2017-10-07 07:59:01 +0200 |
commit | bfa4dba15485b4192f8bbe13345e9658c97ecf76 (patch) | |
tree | fb9c6e5860881fbde902f7cbdbd41dc4a3a9fb5d /silx/sx/__init__.py | |
parent | f7bdc2acff3c13a6d632c28c4569690ab106eed7 (diff) |
New upstream version 0.6.0+dfsg
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 |