Prefer the "godot" on PATH by default, and fall back to the steam version if that's unavailable.

This commit is contained in:
yagigreg committed 2026-10-16 19:14:42 -05:00
1 parent 90c2d35c15
commit 1c13de1d17
1 file changed
+6 -2
+6 -2
View File
@@ -1,9 +1,13 @@
import os
import subprocess
import shutil
from . import util
GODOT_PATHS = ["C:\Program Files (x86)\Steam\steamapps\common\Godot Engine\godot.windows.opt.tools.64.exe"]
GODOT_PATHS = [
shutil.which("godot"),
"C:\Program Files (x86)\Steam\steamapps\common\Godot Engine\godot.windows.opt.tools.64.exe"
]
GODOT_PROJECT = "project.godot"
class Project():
@@ -18,7 +22,7 @@ class Project():
def find_command():
for exe in GODOT_PATHS:
if os.path.exists(exe):
if exe and os.path.exists(exe):
return exe
return "godot"