We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9321f6b commit 69e69caCopy full SHA for 69e69ca
misc.py
@@ -1,5 +1,4 @@
1
import sys
2
-import sagecell_config
3
4
def select_db(sysargs, context=None):
5
u"""
@@ -10,6 +9,7 @@ def select_db(sysargs, context=None):
10
9
:type context: zmq.Context
11
:returns: a tuple of the form ``(db, fs)``
12
"""
+ import sagecell_config
13
try:
14
db=sysargs.db
15
except:
@@ -38,8 +38,7 @@ def select_db(sysargs, context=None):
38
return db_sqlalchemy.DB('sqlalchemy_sqlite.db'), None # None should be replaced by the sqlite filestore
39
elif db=="mongo":
40
import pymongo, db_mongo, filestore
41
- import sagecell_config
42
- from sagecell_config import mongo_config
+ mongo_config = sagecell_config.mongo_config
43
44
if '@' in mongo_config['mongo_uri']:
45
# password specified, so we need to include the database in the URI
0 commit comments