Enable gdscript-godot-executable as a full uri to the godot exe

This commit is contained in:
Richard G. Riley
2020-08-28 09:05:35 +02:00
parent 3f33cb6611
commit 2e9f6fbe2a
2 changed files with 4 additions and 6 deletions

View File

@@ -57,9 +57,8 @@ ARGUMENTS are command line arguments for godot executable.
When run it will kill existing process if one exists."
(let ((buffer-name (gdscript-util--get-godot-buffer-name (member "-e" arguments)))
(inhibit-read-only t))
(when (not (executable-find gdscript-godot-executable))
(error "Error: Could not find %s on PATH. Please customize the gdscript-godot-executable variable" gdscript-godot-executable))
(when (not (or (f-executable-p gdscript-godot-executable) (executable-find gdscript-godot-executable)))
(error "Error: Could not execute '%s'. Please customize the `gdscript-godot-executable variable'" gdscript-godot-executable))
;; start new godot
(with-current-buffer (get-buffer-create buffer-name)

View File

@@ -104,9 +104,8 @@ fill parens."
"Multiplier applied to indentation inside multi-line def blocks."
:version "26.1"
:type 'integer
:safe 'natnump)
(defcustom gdscript-godot-executable "godot"
:safe 'natnump)
(defcustom gdscript-godot-executable "godot"
"The godot executable which is either a full path such as '~/bin/godot2.2'
or the name of an executable on the system PATH (usually 'godot')"