We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b53db6 commit ba9498fCopy full SHA for ba9498f
1 file changed
struct_module/commands/generate.py
@@ -62,6 +62,9 @@ def _run_hooks(self, hooks, hook_type="pre"): # helper for running hooks
62
return True
63
64
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
+
68
if structure_definition.startswith("file://") and structure_definition.endswith(".yaml"):
69
with open(structure_definition[7:], 'r') as f:
70
return yaml.safe_load(f)
0 commit comments