Make template separator character user-configurable
This commit is contained in:
parent
08b5124adb
commit
45bcc1dd45
@ -59,6 +59,7 @@ class Options:
|
||||
bgcolor_bundle: Optional[Color] = None
|
||||
color_mode: ColorMode = "SHORT"
|
||||
mini_bom_mode: bool = True
|
||||
template_separator: str = "."
|
||||
|
||||
def __post_init__(self):
|
||||
if not self.bgcolor_node:
|
||||
|
||||
@ -153,7 +153,7 @@ def parse(
|
||||
|
||||
# go through connection sets, generate and connect components ==============
|
||||
|
||||
template_separator_char = "." # TODO: make user-configurable (in case user wants to use `.` as part of their template/component names)
|
||||
template_separator_char = harness.options.template_separator
|
||||
|
||||
def resolve_designator(inp, separator):
|
||||
if separator in inp: # generate a new instance of an item
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user