Make template separator character user-configurable

This commit is contained in:
Daniel Rojas 2021-10-16 17:20:13 +02:00 committed by Laurier Loiselle
parent 8796709195
commit fbc90c0475
No known key found for this signature in database
GPG Key ID: 345920CC72089A3F
2 changed files with 2 additions and 1 deletions

View File

@ -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:

View File

@ -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