pull/35960/head
Maxime Desroches 1 week ago
parent ff27ed1de6
commit e8b9d0cf79
  1. 4
      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()

Loading…
Cancel
Save