Skip to content

Commit

Permalink
fix(path): append path to filename list
Browse files Browse the repository at this point in the history
  • Loading branch information
hahnec committed Aug 30, 2020
1 parent a169d38 commit 54ad4cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion color_matcher/bin/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def main():

# select image(s) considering provided folder or file
if os.path.isdir(cfg['src_path']):
filenames = [f for f in os.listdir(cfg['src_path']) if f.lower().endswith(FILE_EXTS)]
filenames = [os.path.join(cfg['src_path'], f) for f in os.listdir(cfg['src_path'])
if f.lower().endswith(FILE_EXTS)]
elif not os.path.isfile(cfg['src_path']) or not os.path.isfile(cfg['ref_path']):
print('File(s) not found \n')
sys.exit()
Expand Down

0 comments on commit 54ad4cc

Please sign in to comment.