Skip to content

Commit

Permalink
IMPROVEMENT: move the vehicle_templates directory inside the Methodic…
Browse files Browse the repository at this point in the history
…Configurator python package

To follow standard pip python packaging recomendations
  • Loading branch information
amilcarlucas committed Nov 18, 2024
1 parent 54c531c commit 93dc3d2
Show file tree
Hide file tree
Showing 738 changed files with 3,013 additions and 3,016 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"--allow-editing-template-files",
"--device=test",
"--skip-component-editor",
"--vehicle-dir=C:\\Users\\amilc\\Documents\\iav\\ardupilot_methodic_configurator\\vehicle_templates\\ArduCopter\\FETtec-5"
"--vehicle-dir=C:\\Users\\amilc\\Documents\\iav\\ardupilot_methodic_configurator\\MethodicConfigurator\\vehicle_templates\\ArduCopter\\FETtec-5"
],
}
]
Expand Down
2 changes: 0 additions & 2 deletions MethodicConfigurator/backend_filesystem_program_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ def get_templates_base_dir() -> str:
site_directory = os_path.join(os_path.expanduser("~"), ".local", "MethodicConfigurator")
elif "dist-packages" in site_directory:
site_directory = os_path.join("/usr", "local", "MethodicConfigurator")
else:
site_directory = site_directory.replace("/MethodicConfigurator", "")

logging_debug(_("site_directory: %s"), site_directory)
return os_path.join(site_directory, "vehicle_templates")
Expand Down
Loading

0 comments on commit 93dc3d2

Please sign in to comment.