Re-enable image code in wireviz.py
This commit is contained in:
parent
addb180292
commit
fc58108de0
@ -53,11 +53,10 @@ def parse(yaml_input: str, file_out: (str, Path) = None, return_types: (None, st
|
|||||||
if len(yaml_data[sec]) > 0:
|
if len(yaml_data[sec]) > 0:
|
||||||
if ty == dict:
|
if ty == dict:
|
||||||
for key, attribs in yaml_data[sec].items():
|
for key, attribs in yaml_data[sec].items():
|
||||||
# TODO: take care of this image thing
|
|
||||||
# The Image dataclass might need to open an image file with a relative path.
|
# The Image dataclass might need to open an image file with a relative path.
|
||||||
# image = attribs.get('image')
|
image = attribs.get('image')
|
||||||
# if isinstance(image, dict):
|
if isinstance(image, dict):
|
||||||
# image['gv_dir'] = Path(file_out if file_out else '').parent # Inject context
|
image['gv_dir'] = Path(file_out if file_out else '').parent # Inject context
|
||||||
|
|
||||||
# store component templates only; do not generate instances yet
|
# store component templates only; do not generate instances yet
|
||||||
if sec == 'connectors':
|
if sec == 'connectors':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user