echo-lalia / MicroHydra

MicroHydra is a simple, 'OS-like', MicroPython based app switcher designed for ESP32 based devices.
GNU General Public License v3.0
136 stars 14 forks source link

Scripts under `tools/` should probably be modified to import a common module. #139

Open echo-lalia opened 2 weeks ago

echo-lalia commented 2 weeks ago

A lot of the scripts under tools/ are re-implementing the same code. This means that when updates are made, the exact same modification needs to be made in several different locations.

Currently, some scripts are import the NON_DEVICE_FILES constant from the parse_files script, but this still feels a little inelegant.

It would make a lot more sense if there was some kind of common build utility module that hosted the logic for things like extracting device files, getting device names, getting default paths, etc.