Skip to content
Browse files

Updated to work with IPython>=0.11.

  • Loading branch information...
1 parent 5c76682 commit ac5e5c6b88b7cf5deeefac4ade9134ece8e19b69 @martyanov martyanov committed with rduplain Mar 1, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 flaskext/script.py
View
5 flaskext/script.py
@@ -281,7 +281,10 @@ def run(self, no_ipython):
if not no_ipython:
try:
import IPython
- sh = IPython.Shell.IPShellEmbed(banner=self.banner)
+ try:
+ sh = IPython.Shell.IPShellEmbed(banner=self.banner)
+ except AttributeError:
+ sh = IPython.frontend.terminal.embed.InteractiveShellEmbed(banner1=self.banner)
sh(global_ns=dict(), local_ns=context)
return
except ImportError:

0 comments on commit ac5e5c6

Please sign in to comment.
Something went wrong with that request. Please try again.