Skip to content

Commit

Permalink
Allow directories to be used as output_path (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
vesatoivonen authored and amietn committed Jun 14, 2019
1 parent d6765c0 commit 1c5ae90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vcsi/vcsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,8 @@ def process_file(path, args):
output_path = args.output_path
if not output_path:
output_path = path + "." + args.image_format
elif os.path.isdir(output_path):
output_path = os.path.join(output_path, os.path.basename(path) + "." + args.image_format)

if args.no_overwrite:
if os.path.exists(output_path):
Expand Down

0 comments on commit 1c5ae90

Please sign in to comment.