summaryrefslogtreecommitdiff
path: root/buildscripts/collect_resource_info.py
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@10gen.com>2017-10-05 10:14:59 -0400
committerRobert Guo <robert.guo@10gen.com>2017-10-05 10:14:59 -0400
commit7bbda2fbfd7a6235202c50ef9f3bc4a0c938cc48 (patch)
tree7758c9baba5182ca8bade0eadd8e9991bd9a4a76 /buildscripts/collect_resource_info.py
parentedc3dfce51b00ba3007f35cf6383efb72bf8b74e (diff)
downloadmongo-7bbda2fbfd7a6235202c50ef9f3bc4a0c938cc48.tar.gz
SERVER-30839 add back resmoke import checks
Diffstat (limited to 'buildscripts/collect_resource_info.py')
-rwxr-xr-xbuildscripts/collect_resource_info.py4
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