Skip to content

Commit d954b9c

Browse files
committed
Try PATH.exe in Windows
This fixes tkf/emacs-jedi#148
1 parent 7fb50ef commit d954b9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python-environment.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,12 @@ See `python-environment-make' for how ROOT is interpreted."
167167
(defun python-environment-bin (path &optional root)
168168
"Return full path to \"ROOT/bin/PATH\" or \"ROOT/Script/PATH\" if exists.
169169
``Script`` is used instead of ``bin`` in typical Windows case.
170+
In Windows, path with extension \".ext\" may be returned.
170171
See `python-environment-make' for how ROOT is interpreted."
171172
(python-environment--existing root
172173
(concat "bin/" path)
173-
(concat "Script/" path)))
174+
(concat "Script/" path)
175+
(concat "Script/" path ".exe")))
174176

175177
(defun python-environment-lib (path &optional root)
176178
"Return full path to \"ROOT/lib/PATH\" or \"ROOT/Lib/PATH\" if exists.

0 commit comments

Comments
 (0)