diff options
author | Robert Guo <robert.guo@10gen.com> | 2017-10-05 10:14:59 -0400 |
---|---|---|
committer | Robert Guo <robert.guo@10gen.com> | 2017-10-05 10:14:59 -0400 |
commit | 7bbda2fbfd7a6235202c50ef9f3bc4a0c938cc48 (patch) | |
tree | 7758c9baba5182ca8bade0eadd8e9991bd9a4a76 /buildscripts/collect_resource_info.py | |
parent | edc3dfce51b00ba3007f35cf6383efb72bf8b74e (diff) | |
download | mongo-7bbda2fbfd7a6235202c50ef9f3bc4a0c938cc48.tar.gz |
SERVER-30839 add back resmoke import checks
Diffstat (limited to 'buildscripts/collect_resource_info.py')
-rwxr-xr-x | buildscripts/collect_resource_info.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/buildscripts/collect_resource_info.py b/buildscripts/collect_resource_info.py index 5fc6c614afa..56bbb073fca 100755 --- a/buildscripts/collect_resource_info.py +++ b/buildscripts/collect_resource_info.py @@ -18,7 +18,9 @@ import requests # Get relative imports to work when the package is not installed on the PYTHONPATH. -sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +if __name__ == "__main__" and __package__ is None: + sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + from buildscripts.resmokelib import utils |