Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix `venv-mkvirtualenv-using' can not be called interactively or with… #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions virtualenvwrapper.el
Original file line number Diff line number Diff line change
Expand Up @@ -354,19 +354,20 @@ throwing an error if not"
is a single directory, the new virtualenvs are made there; if it
is a list of directories, the new virtualenvs are made in the
current `default-directory'."
(interactive)
(interactive (list nil))
(venv--check-executable)
(let* ((foo (if current-prefix-arg
(read-string "Python executable: ")
interpreter))
(parent-dir (if (stringp venv-location)
(file-name-as-directory
(expand-file-name venv-location))
default-directory))
(python-exe-arg (when foo
(concat "--python=" foo)))
(names (if names names
(list (read-from-minibuffer "New virtualenv: ")))))
(let* ((interpreter (if (or current-prefix-arg
(null interpreter))
(read-string "Python executable: ")
interpreter))
(parent-dir (if (stringp venv-location)
(file-name-as-directory
(expand-file-name venv-location))
default-directory))
(python-exe-arg (when interpreter
(concat "--python=" interpreter)))
(names (if names names
(list (read-from-minibuffer "New virtualenv: ")))))
;; map over all the envs we want to make
(--each names
;; error if this env already exists
Expand Down