Skip to content

Commit

Permalink
src/sage/repl/ipython_extension.py: Fall back to importing sage.all__…
Browse files Browse the repository at this point in the history
…sagemath_repl if sage.all is not available
  • Loading branch information
Matthias Koeppe committed May 5, 2022
1 parent 5a13e76 commit 787ddd9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sage/repl/ipython_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,10 @@ def __init__(self, shell=None):
self.init_inspector()
self.init_line_transforms()

import sage.all # until sage's import hell is fixed
try:
import sage.all # until sage's import hell is fixed
except ImportError:
import sage.all__sagemath_repl

self.shell.verbose_quit = True

Expand Down

0 comments on commit 787ddd9

Please sign in to comment.