mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Allowed multiple versions of MongoDB
This commit is contained in:
parent
32bae5362e
commit
63b5b50f96
1 changed files with 3 additions and 1 deletions
|
@ -69,8 +69,10 @@ def which(cmd, mode=os.F_OK | os.X_OK, path=None):
|
|||
#TODO: Upgrade this so it works on windows
|
||||
#These scripts will be placed in coco/bin
|
||||
|
||||
|
||||
current_directory = os.path.dirname(os.path.realpath(sys.argv[0]))
|
||||
if which("mongod") and "v2.5.4" in subprocess.check_output("mongod --version",shell=True):
|
||||
allowedMongoVersions = ["v2.5.4","v2.5.5"]
|
||||
if which("mongod") and any(i in subprocess.check_output("mongod --version",shell=True) for i in allowedMongoVersions):
|
||||
mongo_executable = "mongod"
|
||||
else:
|
||||
mongo_executable = None
|
||||
|
|
Loading…
Reference in a new issue