Skip to content

Commit 3d0e9aa

Browse files
authored
Change subprocess call to exiftool back to 'exiftool'
1 parent f475f74 commit 3d0e9aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plantcv/extras/thermal/flir_rename.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def flir_rename(filename, new_dir, sep='_'):
2424
:param new_dir: str
2525
"""
2626
# finds path to exiftool
27-
exiftool_path = str(os.environ.get('exiftoolpath'))
27+
#exiftool_path = str(os.environ.get('exiftoolpath'))
2828

2929
if os.path.exists(filename) is False:
3030
fatal_error(filename + "could not be found")
@@ -43,8 +43,8 @@ def flir_rename(filename, new_dir, sep='_'):
4343
date_format = "%Y_%m_%dT%H_%M"
4444
changename = "-filename<%f-$datetimeoriginal.%e"
4545

46-
result = os.system('which exiftool')
47-
print(result)
46+
#result = os.system('which exiftool')
47+
#print(result)
4848
#exiftool_path = result.stdout
4949
#
5050
#exiftool_path = str(subprocess.check_output(['which', 'exiftool']).decode("utf-8"))[:-1]
@@ -54,4 +54,4 @@ def flir_rename(filename, new_dir, sep='_'):
5454
#exiftool_path = result.stdout[:-1]
5555
#print(exiftool_path)
5656

57-
subprocess.run([exiftool_path, *args, date_format, changename, filename], check=True)
57+
subprocess.run(['exiftool', *args, date_format, changename, filename], check=True)

0 commit comments

Comments
 (0)