diff --git a/python-environment.el b/python-environment.el index d36be23..40d75bf 100644 --- a/python-environment.el +++ b/python-environment.el @@ -162,15 +162,17 @@ See `python-environment-make' for how ROOT is interpreted." (python-environment-root-path root)))) (if (file-exists-p full-path) full-path - (python-environment--existing (cdr paths)))))) + (apply #'python-environment--existing root (cdr paths)))))) (defun python-environment-bin (path &optional root) - "Return full path to \"ROOT/bin/PATH\" or \"ROOT/Script/PATH\" if exists. -``Script`` is used instead of ``bin`` in typical Windows case. + "Return full path to \"ROOT/bin/PATH\" or \"ROOT/Scripts/PATH\" if exists. +``Scripts`` is used instead of ``bin`` in typical Windows case. +In Windows, path with extension \".ext\" may be returned. See `python-environment-make' for how ROOT is interpreted." (python-environment--existing root (concat "bin/" path) - (concat "Script/" path))) + (concat "Scripts/" path) + (concat "Scripts/" path ".exe"))) (defun python-environment-lib (path &optional root) "Return full path to \"ROOT/lib/PATH\" or \"ROOT/Lib/PATH\" if exists.