sylikc / pyexiftool

PyExifTool (active PyPI project) - A Python library to communicate with an instance of Phil Harvey's ExifTool command-line application. Runs one process with special -stay_open flag, and pipes data to/from. Much more efficient than running a subprocess for each command!
Other
144 stars 17 forks source link

Support '-w' flag in common_args #3

Closed ickc closed 4 years ago

ickc commented 4 years ago

When '-w' flag is added, exiftool writes the json in a file instead of putting it in stdout. This change handle that case to print the string "# image files read\n# output files created\n" that exiftool put to stdout, and return None, which is expected if the result is written to files.

sylikc commented 4 years ago

thanks for the feature for a "-w flag". It has been merged with master