Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions ardupilot_methodic_configurator/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from ardupilot_methodic_configurator import _, __version__
from ardupilot_methodic_configurator.backend_filesystem import LocalFilesystem
from ardupilot_methodic_configurator.backend_filesystem_freedesktop import FreeDesktop
from ardupilot_methodic_configurator.backend_filesystem_migration import migrate_vehicle_project_if_needed
from ardupilot_methodic_configurator.backend_filesystem_program_settings import ProgramSettings
from ardupilot_methodic_configurator.backend_flightcontroller import DEVICE_FC_PARAM_FROM_FILE, FlightController
from ardupilot_methodic_configurator.backend_internet import verify_and_open_url, webbrowser_open_url
Expand Down Expand Up @@ -356,6 +357,11 @@ def initialize_filesystem(state: ApplicationState) -> None:
SystemExit: If there's a fatal error reading parameter files

"""
# Migrate the vehicle project to the latest format version if needed.
# This must run before LocalFilesystem is created so that parameter files are
# in their new locations when rename_parameter_files() runs inside re_init().
migrate_vehicle_project_if_needed(state.args.vehicle_dir)

# Initialize local filesystem
try:
state.local_filesystem = LocalFilesystem(
Expand Down
Loading
Loading