I would like to change the output file names using a Python script, then do an image processing task. However, I am getting this error:
> unindent does not match any outer indentation level
This is my code:
#!/usr/bin/env python
import glob
import os
files=glob.glob("*.hdr")
for file in files:
new_file = file.replace("hdr","exr")
print(new_file)
os.system("pfsin %s | pfsoutexr --compression NO %s" (file, new_file))
os.system. Also,"pfsin %s | pfsoutexr --compression NO %s" (file, new_file)will result in another error. I think you forgot%:...NO %s" % (file, new_file)).TypeError: 'str' object is not callable.