1. Bertrand Croq
  2. nagare-core

Commits

Alain Poirier  committed 1b395ec

Fixes #1533

  • Participants
  • Parent commits e5542fd
  • Branches default

Comments (0)

Files changed (1)

File nagare/admin/shell.py

View file
         prompt = '[%s]' % app_names[0] if len(app_names) == 1 else ''
         config.PromptManager.in_template = 'Nagare%s [\\#]: ' % prompt
 
-        self.shell = ipython.frontend.terminal.embed.InteractiveShellEmbed(config=config, user_ns=ns, banner1=banner)
+        self.shell = getattr(ipython, 'frontend', ipython).terminal.embed.InteractiveShellEmbed(config=config, user_ns=ns, banner1=banner)
         self.shell.confirm_exit = False
 
     def __call__(self):