Skip to content

Commit 6aff523

Browse files
committed
Add fallback to contribs path for structure definition file in GenerateCommand
1 parent f52a108 commit 6aff523

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

struct_module/commands/generate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def _create_structure(self, args):
5151
if args.structures_path:
5252
file_path = os.path.join(args.structures_path, f"{args.structure_definition}.yaml")
5353

54-
if not os.path.exists(file_path) and args.structures_path:
54+
if not os.path.exists(file_path):
55+
# fallback to contribs path
5556
file_path = os.path.join(contribs_path, f"{args.structure_definition}.yaml")
5657

5758
if not os.path.exists(file_path):

0 commit comments

Comments
 (0)