mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2025-12-31 21:48:34 +03:00
Enable gdscript-godot-executable as a full uri to the godot exe
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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')"
|
||||
|
||||
Reference in New Issue
Block a user