If uzdoom is installed then prefer it over gzdoon.

This commit is contained in:
2025-11-19 22:41:47 -06:00
parent 719d1ee6e3
commit 90c2d35c15

View File

@@ -1,9 +1,12 @@
import os
import subprocess
import shutil
from . import util
GZDOOM_PATHS = []
GZDOOM_PATHS = [
shutil.which("uzdoom")
]
SLADE_PATHS = []
GZDOOM_PROJECT = "iwadinfo.txt"
@@ -19,7 +22,7 @@ class Project():
def find_gzdoom_command():
for exe in GZDOOM_PATHS:
if os.path.exists(exe):
if exe and os.path.exists(exe):
return exe
return "gzdoom"