Commit 1e6298ae authored by Denis Bilenko's avatar Denis Bilenko

record_results.py: calculate path only once

parent f5da3456
......@@ -37,8 +37,9 @@ from greentest import disabled_marker
warnings.simplefilter('ignore')
path = join(join(*split(dirname(abspath(__file__)))[:-1]), 'testresults')
def get_results_db():
path = join(join(*split(dirname(abspath(__file__)))[:-1]), 'testresults')
try:
os.makedirs(path)
except OSError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment