LightTable / Python

Python language plugin for Light Table
MIT License
98 stars 80 forks source link

wrong path for virtualenv on Windows? #25

Open ergodicbreak opened 9 years ago

ergodicbreak commented 9 years ago

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 commented 9 years ago

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