Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathgenerate.py
More file actions
Latest commit
executable file
·30 lines (25 loc) · 954 Bytes
/
Copy pathgenerate.py
File metadata and controls
executable file
·30 lines (25 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python3
# This generates the same codeplug as generate.sh
# using python code.
frompathlibimportPath
importos
fromdzcb.recipeimportCodeplugRecipe
cp_dir=Path(__file__).parent
output=Path(os.environ.get("OUTPUT") or (cp_dir/".."/".."/"OUTPUT"))
CodeplugRecipe(
source_pnwdigital=True,
source_seattledmr=True,
source_default_k7abd=True,
source_k7abd=[(cp_dir/"k7abd")],
source_repeaterbook_proximity=cp_dir/"prox.csv",
repeaterbook_states=["washington", "oregon"],
repeaterbook_name_format='{Callsign} {Nearest City} {Landmark}',
scanlists_json=cp_dir/"scanlists.json",
exclude=cp_dir/"exclude.csv",
order=cp_dir/"order.csv",
replacements=cp_dir/"replacements.csv",
output_anytone=True,
output_dmrconfig=[(cp_dir/"example-d878uv.conf")],
output_farnsworth=[(cp_dir/"example-md-uv380.json")],
output_gb3gf=True
).generate(output/cp_dir.name)