ExifTool Forum

ExifTool => Developers => Topic started by: luvnrocs on November 03, 2023, 06:40:19 PM

Title: Run EXIFTool bat file from within Python script
Post by: luvnrocs on November 03, 2023, 06:40:19 PM
I have a bat file that I drag and drop a folder on and it uses EXIFTool to generate a CSV file (with limited tags) of the embedded metadata in the images.

I also have a python script I wrote to do a bunch of other tasks to that same folder and I would like to integrate this CSV output step into Python so I don't have to run two processes.

I'm not a Python power user and I'm not sure how to proceed. Should I try to run the bat file from the script or should I use PyEXIFTool to perform the same task?
Title: Re: Run EXIFTool bat file from within Python script
Post by: Phil Harvey on November 03, 2023, 09:51:04 PM
Maybe you should take a look at the PyExifTool interface to see if it looks like it will easily do what you want.  If not, then you may have to tackle piping the exiftool application input/output yourself.

- Phil