summaryrefslogtreecommitdiffstats
path: root/tests/main.py
diff options
context:
space:
mode:
authorwenjuan dong <dong.wenjuan@zte.com.cn>2017-07-27 01:29:50 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-07-27 01:29:50 +0000
commit3e0300e8f9695348aa4564f87a23ac3c0cf737ff (patch)
tree7d052cb88d375f6fb731f7c75d5a54510a272170 /tests/main.py
parent6b117129e778b4877b17cf594aec57fb029cb83d (diff)
parentcbb58ee4050a201c0125b0b0b1a7c8f162925849 (diff)
Merge "fix some bugs for python verify jobs:"
Diffstat (limited to 'tests/main.py')
-rw-r--r--tests/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/main.py b/tests/main.py
index 182680ce..797e28b2 100644
--- a/tests/main.py
+++ b/tests/main.py
@@ -82,7 +82,7 @@ class DoctorTest(object):
def main():
"""doctor main"""
- doctor_root_dir = os.path.dirname(os.getcwd())
+ doctor_root_dir = os.path.dirname(sys.path[0])
config_file_dir = '{0}/{1}'.format(doctor_root_dir, 'etc/')
config_files = [join(config_file_dir, f) for f in os.listdir(config_file_dir)
if isfile(join(config_file_dir, f))]