Skip to content

Commit

Permalink
Merge pull request #555 from nikitalita/gimp-windows-exe-fix
Browse files Browse the repository at this point in the history
gimp_render: lookup windows exe in program files too
  • Loading branch information
zyddnys authored Dec 31, 2023
2 parents f358cb6 + c2c7c09 commit 3f7bead
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manga_translator/rendering/gimp_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ def gimp_console_executable():
if platform.system() == "Windows":
gimp_dir = os.getenv("LOCALAPPDATA") + "\\Programs\\GIMP 2\\bin\\"
executables = glob.glob(gimp_dir + "gimp-console-2.*.exe")
if len(executables) > 0:
return executables[0]
# may be in program files
gimp_dir = os.getenv("ProgramFiles") + "\\GIMP 2\\bin\\"
executables = glob.glob(gimp_dir + "gimp-console-2.*.exe")
if len(executables) == 0:
print("error: gimp not found in directory:", gimp_dir)
return
Expand Down

0 comments on commit 3f7bead

Please sign in to comment.