Skip to content

Commit 5aed545

Browse files
committed
Fixed missing part of template
1 parent a50ff2e commit 5aed545

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/pbpt_gen_template.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@ def run_gen_commands(self):
332332
class GenCmds(PBPTGenQProcessToolCmds):
333333
def gen_command_info(self, **kwargs):
334334
print("** This function needs implementing! **")
335+
336+
# Create output directory if it doesn't exist.
337+
if not os.path.exists(kwargs["out_dir"]):
338+
os.mkdir(kwargs["out_dir"])
335339
336340
# Get the list of input images
337341
ref_imgs = glob.glob(kwargs["ref_imgs"])

0 commit comments

Comments
 (0)