Python icon indicating copy to clipboard operation
Python copied to clipboard

wrong path for virtualenv on Windows?

Open ergodicbreak opened this issue 10 years ago • 1 comments

This code at https://github.com/LightTable/Python/blob/master/src/lt/plugins/python.cljs#L112 doesn't look right,


(defn find-venv [obj]
  (let [to-find (if (platform/win?)
                  "bin\\python"
                  "bin/python")
; ....

On Windows the virtualenv bin dir is called Scripts.

If I try to set this dir as root with Add Connection in LT, LT doesn't find the Python exe there.

edit: I think the correct path here is "scripts\\python.exe"

ergodicbreak avatar Feb 22 '15 17:02 ergodicbreak

Opened a pull request at https://github.com/LightTable/Python/pull/26

ergodicbreak avatar Feb 22 '15 20:02 ergodicbreak