Skip to content
Snippets Groups Projects
Commit c7519950 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

data.py respektují env LOGFILE

parent c8142299
No related branches found
No related tags found
No related merge requests found
import json
import os
import subprocess
class Algorithm():
......@@ -51,7 +52,8 @@ class Run:
return False
return self.algo_version == self.algo.current_version
raw_json = "[" + open('log',mode='r').read()[0:-2] + "]"
logfile = os.environ.get('LOGFILE', 'log')
raw_json = "[" + open(logfile,mode='r').read()[0:-2] + "]"
data = json.loads(raw_json)
algorithms = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment