mycodeplug / dzcb

DMR Zone Channel Builder. See https://github.com/mycodeplug/example-codeplug to customize.
MIT License
12 stars 11 forks source link

CodeplugRecipe - python API for generating the codeplug #63

Closed masenf closed 3 years ago

masenf commented 3 years ago

Add a parallel API for creating a codeplug using python, instead of CLI invocation.

The new CodeplugRecipe class contains all of the functionality that was previously defined in the __main__ program, now encapsulated in a way that provides better input validation and flexibility to override or hook into some of the generation process using python code.

Additionally clean up the default codeplugs and update tox.ini and default-codeplugs.yml to allow true cross-platform codeplug generation with no dependency on bash.

(The bash scripts remain as examples)

fixes #60

masenf commented 3 years ago

~need to fix the output paths for default-codeplug.~ ✔️ FIXED

previously, the same-named top level dir was created in the output dir; however a change that was made caused the codeplug to write directly to $OUTPUT without a subdir