Skip to content

Commit

Permalink
Update path of exiftool.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
nmantani committed Dec 15, 2024
1 parent 3c364df commit 8218430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/Operations/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ class _point_t(ctypes.Structure):

if find_embed():
# Preload diec.exe and exiftool.exe to start them faster for when "File type" plugin and "Show metadata" plugin use them
if os.path.exists("Parsing/die_win64_portable/diec.exe") and os.path.exists("Parsing/exiftool.exe"):
if os.path.exists("Parsing/die_win64_portable/diec.exe") and os.path.exists("python3-embed/exiftool.exe"):
pid = os.getpid()
kernel32 = ctypes.windll.kernel32
mutex = kernel32.CreateMutexA(0, 1, "fileinsight-plugins-preload-%s" % pid) # pid is not changed in a FileInsight process
Expand All @@ -420,7 +420,7 @@ class _point_t(ctypes.Structure):
if result == 0x00000000:
# Execute diec.exe and exiftool.exe in the background only once
subprocess.Popen(["Parsing/die_win64_portable/diec.exe", "main.py"], startupinfo=startupinfo, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
subprocess.Popen(["Parsing/exiftool.exe", "main.py"], startupinfo=startupinfo, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
subprocess.Popen(["python3-embed/exiftool.exe", "main.py"], startupinfo=startupinfo, stdin=subprocess.PIPE, stdout=subprocess.PIPE)

# Execute menu.py to show GUI
# GUI portion is moved to menu.py to avoid hangup of FileInsight
Expand Down

0 comments on commit 8218430

Please sign in to comment.