Skip to content

Commit ba9498f

Browse files
committed
patch
1 parent 0b53db6 commit ba9498f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

struct_module/commands/generate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ def _run_hooks(self, hooks, hook_type="pre"): # helper for running hooks
6262
return True
6363

6464
def _load_yaml_config(self, structure_definition, structures_path):
65+
if structure_definition.endswith(".yaml") and not structure_definition.startswith("file://"):
66+
structure_definition = f"file://{structure_definition}"
67+
6568
if structure_definition.startswith("file://") and structure_definition.endswith(".yaml"):
6669
with open(structure_definition[7:], 'r') as f:
6770
return yaml.safe_load(f)

0 commit comments

Comments
 (0)