Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Commit

Permalink
fix for SAGE_SRC not being in the environment for classic Sage
Browse files Browse the repository at this point in the history
  • Loading branch information
ohanar committed Apr 3, 2013
1 parent be037b2 commit 6790641
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flask_version/base.py
Expand Up @@ -6,7 +6,11 @@
from decorators import global_lock

from flask.ext.autoindex import AutoIndex
SRC = os.path.join(os.environ['SAGE_SRC'], 'sage')
try:
from sage.env import SAGE_SRC
except ImportError:
SAGE_SRC = os.environ.get('SAGE_SRC', os.path.join(os.environ['SAGE_ROOT'], 'devel', 'sage'))
SRC = os.path.join(SAGE_SRC, 'sage')
from flask.ext.openid import OpenID
from flask.ext.babel import Babel, gettext, ngettext, lazy_gettext, get_locale
from sagenb.misc.misc import SAGENB_ROOT, DATA, SAGE_DOC, translations_path
Expand Down

0 comments on commit 6790641

Please sign in to comment.