Merge pull request #85 from besendorf/main

Change hardcoded paths make analysis.py usable standalone
This commit is contained in:
Félix Aimé
2022-06-04 22:24:00 +02:00
committed by GitHub
5 changed files with 90 additions and 62 deletions

View File

@ -24,7 +24,7 @@ class Analysis(object):
if self.token is not None:
parent = "/".join(sys.path[0].split("/")[:-2])
sp.Popen(
[sys.executable, "{}/analysis/analysis.py".format(parent), "/tmp/{}".format(self.token)])
[sys.executable, "{}/analysis/analysis.py".format(parent), "-f", "/tmp/{}".format(self.token)])
return {"status": True,
"message": "Analysis started",
"token": self.token}