From e8b9d0cf799fd51a489fe3b384c89c5e35dede6b Mon Sep 17 00:00:00 2001 From: Maxime Desroches Date: Sat, 9 Aug 2025 00:01:12 -0700 Subject: [PATCH] consist --- system/ui/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/ui/setup.py b/system/ui/setup.py index cbee5facb5..0b679217b3 100755 --- a/system/ui/setup.py +++ b/system/ui/setup.py @@ -33,7 +33,7 @@ BUTTON_SPACING = 50 OPENPILOT_URL = "https://openpilot.comma.ai" USER_AGENT = f"AGNOSSetup-{HARDWARE.get_os_version()}" -OPENPILOT_CACHE_PATH = "/data/openpilot.cache" +OPENPILOT_CACHE = "/data/openpilot.cache" INSTALLER_SOURCE = "/usr/comma/installer" INSTALLER_DESTINATION = "/tmp/installer" @@ -311,7 +311,7 @@ class Setup(Widget): gui_app.set_modal_overlay(self.keyboard, callback=handle_keyboard_result) def use_openpilot(self): - if os.path.isdir(OPENPILOT_CACHE_PATH): + if os.path.isdir(OPENPILOT_CACHE): shutil.copyfile(INSTALLER_SOURCE, INSTALLER_DESTINATION) self.download_url = OPENPILOT_URL self.prepare_installer()