From f627f0c12ef6ee72dfe829c08ce51d1a54db3a12 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 16 Nov 2023 14:20:55 -0800 Subject: [PATCH] Revert "tici: use BASEDIR to lookup nm connection path" This reverts commit 5f510c33072dd435f9cb3c42add3afa14cce1f53. old-commit-hash: e6e073d099009154eb6e70989113c77111750cb4 --- system/hardware/tici/hardware.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/hardware/tici/hardware.py b/system/hardware/tici/hardware.py index d85477ada5..3b5647cc56 100644 --- a/system/hardware/tici/hardware.py +++ b/system/hardware/tici/hardware.py @@ -9,7 +9,6 @@ from functools import cached_property, lru_cache from pathlib import Path from cereal import log -from openpilot.common.basedir import BASEDIR from openpilot.common.gpio import gpio_set, gpio_init, get_irqs_for_action from openpilot.system.hardware.base import HardwareBase, ThermalConfig from openpilot.system.hardware.tici import iwlist @@ -541,7 +540,7 @@ class Tici(HardwareBase): # eSIM prime if sim_id.startswith('8985235'): - with open(os.path.join(BASEDIR, 'system/hardware/tici/esim.nmconnection')) as f, tempfile.NamedTemporaryFile(mode='w') as tf: + with open('/data/openpilot/system/hardware/tici/esim.nmconnection') as f, tempfile.NamedTemporaryFile(mode='w') as tf: dat = f.read() dat = dat.replace("sim-id=", f"sim-id={sim_id}") tf.write(dat)