~ubuntu-branches/debian/experimental/spyder/experimental

« back to all changes in this revision

Viewing changes to spyderlib/ipythonconfig.py

  • Committer: Package Import Robot
  • Author(s): Picca Frédéric-Emmanuel
  • Date: 2014-05-29 09:06:26 UTC
  • mfrom: (1.1.21) (18.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20140529090626-f58t82g0n5iewaxu
Tags: 2.3.0~rc+dfsg-1~experimental2
* Add spyder-common binary package for all the python2,3 common files
* debian/path
  - 0001-fix-documentation-installation.patch (deleted)
  + 0001-fix-spyderlib-path.patch (new)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
#
 
3
# Copyright © 2013 The Spyder Development Team
 
4
# Licensed under the terms of the MIT License
 
5
# (see spyderlib/__init__.py for details)
 
6
 
 
7
"""
 
8
IPython configuration variables needed by Spyder
 
9
"""
 
10
 
 
11
from spyderlib.utils import programs
 
12
 
 
13
 
 
14
def is_qtconsole_installed():
 
15
    if programs.is_module_installed('IPython.qt'):
 
16
        return True
 
17
    elif programs.is_module_installed('IPython.frontend.qt'):
 
18
        return True
 
19
    else:
 
20
        return False
 
21
 
 
22
SUPPORTED_IPYTHON = '>=0.13'
 
23
IPYTHON_QT_INSTALLED = is_qtconsole_installed()