use same env variable for loggerd, deleter, and uploader

old-commit-hash: 1d4b19f739
This commit is contained in:
Adeeb Shihadeh
2021-08-07 18:58:11 -07:00
parent 52d8c21dc7
commit 9b1a7a6f01
2 changed files with 2 additions and 6 deletions

View File

@@ -2,8 +2,8 @@ import os
from pathlib import Path
from selfdrive.hardware import PC
if os.environ.get('LOGGERD_ROOT', False):
ROOT = os.environ['LOGGERD_ROOT']
if os.environ.get('LOG_ROOT', False):
ROOT = os.environ['LOG_ROOT']
elif PC:
ROOT = os.path.join(str(Path.home()), ".comma", "media", "0", "realdata")
else:

View File

@@ -24,7 +24,3 @@ print(f"Average power: {round(average_power, 4)}W")
if average_power > max_average_power:
exit(1)