mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-30839 add back resmoke import checks
This commit is contained in:
parent
edc3dfce51
commit
7bbda2fbfd
@ -18,7 +18,9 @@ import requests
|
|||||||
|
|
||||||
|
|
||||||
# Get relative imports to work when the package is not installed on the PYTHONPATH.
|
# 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
|
from buildscripts.resmokelib import utils
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +14,9 @@ import sys
|
|||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
# Get relative imports to work when the package is not installed on the PYTHONPATH.
|
# 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.testing import report
|
from buildscripts.resmokelib.testing import report
|
||||||
from buildscripts.resmokelib import utils
|
from buildscripts.resmokelib import utils
|
||||||
|
|
||||||
|
@ -12,7 +12,9 @@ import sys
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
# Get relative imports to work when the package is not installed on the PYTHONPATH.
|
# 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 import resmokelib
|
from buildscripts import resmokelib
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user