use same env variable for loggerd, deleter, and uploader

pull/21879/head
Adeeb Shihadeh 2021-08-07 18:58:11 -07:00
parent 45b5df5b08
commit 1d4b19f739
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)