summaryrefslogtreecommitdiffstats
path: root/tests/main.py
diff options
context:
space:
mode:
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))]