diff options
author | Dan Crosta <dcrosta@10gen.com> | 2012-07-06 16:32:11 -0400 |
---|---|---|
committer | Dan Crosta <dcrosta@10gen.com> | 2012-07-06 16:32:11 -0400 |
commit | 6d0f04244230c2ccccedd024c5de29d063b8b084 (patch) | |
tree | ea1feaed2d20de78a706b674fb991139971753c3 /buildscripts/moduleconfig.py | |
parent | 09c5aff0fe4bfb0c9c3752df720e1cc3c10a23e4 (diff) | |
download | mongo-6d0f04244230c2ccccedd024c5de29d063b8b084.tar.gz |
db/modules may not exist, so don't fail if it doesn't
Diffstat (limited to 'buildscripts/moduleconfig.py')
-rw-r--r-- | buildscripts/moduleconfig.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/buildscripts/moduleconfig.py b/buildscripts/moduleconfig.py index 15062c57c9f..696b106fba6 100644 --- a/buildscripts/moduleconfig.py +++ b/buildscripts/moduleconfig.py @@ -29,6 +29,9 @@ def discover_modules(mongo_root): found_modules = {} module_root = abspath(join(mongo_root, 'db', 'modules')) + if not isdir(module_root): + return found_modules + for name in listdir(module_root): root = join(module_root, name) if '.' in name or not isdir(root): |