If uzdoom is installed then prefer it over gzdoon.
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import shutil
|
||||||
|
|
||||||
from . import util
|
from . import util
|
||||||
|
|
||||||
GZDOOM_PATHS = []
|
GZDOOM_PATHS = [
|
||||||
|
shutil.which("uzdoom")
|
||||||
|
]
|
||||||
SLADE_PATHS = []
|
SLADE_PATHS = []
|
||||||
GZDOOM_PROJECT = "iwadinfo.txt"
|
GZDOOM_PROJECT = "iwadinfo.txt"
|
||||||
|
|
||||||
@@ -19,7 +22,7 @@ class Project():
|
|||||||
|
|
||||||
def find_gzdoom_command():
|
def find_gzdoom_command():
|
||||||
for exe in GZDOOM_PATHS:
|
for exe in GZDOOM_PATHS:
|
||||||
if os.path.exists(exe):
|
if exe and os.path.exists(exe):
|
||||||
return exe
|
return exe
|
||||||
|
|
||||||
return "gzdoom"
|
return "gzdoom"
|
||||||
|
|||||||
Reference in New Issue
Block a user