##// END OF EJS Templates
Merge pull request #937 from minrk/readline...
Merge pull request #937 from minrk/readline Add dirty trick for readline import on OSX to more aggressively detect the presence of libedit masquerading as true GNU readline. Also made the libedit warning extremely loud, so people don't miss it. See the original PR page for the gory details; short version: 1. remove lib-dynload from sys.path before trying to import readline the first time 2. after import, restore lib-dynload to its place in sys.path 3. if import failed without lib-dynload, try it one more time, to get the default module

File last commit:

r4806:f4b8b67b
r5211:90b01394 merge
Show More
__init__.py
30 lines | 1013 B | text/x-python | PythonLexer
# encoding: utf-8
"""
Extra capabilities for IPython
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2009 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
from IPython.lib.inputhook import (
enable_wx, disable_wx,
enable_gtk, disable_gtk,
enable_qt4, disable_qt4,
enable_tk, disable_tk,
enable_glut, disable_glut,
enable_pyglet, disable_pyglet,
set_inputhook, clear_inputhook,
current_gui
)
#-----------------------------------------------------------------------------
# Code
#-----------------------------------------------------------------------------