Skip to content

Commit

Permalink
Merge pull request #54 from porterjamesj/fix-eshell-path-sync
Browse files Browse the repository at this point in the history
fix race condition ??? in eshell path syncing
  • Loading branch information
porterjamesj authored Oct 23, 2017
2 parents 1b8539a + 90b8196 commit b4fd61a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions virtualenvwrapper.el
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,13 @@ prompting the user with the string PROMPT"
;; setup emacs exec-path
(add-to-list 'exec-path (concat venv-current-dir venv-executables-dir))
;; setup the environment for subprocesses
(setenv "PATH" (concat venv-current-dir venv-executables-dir path-separator (getenv "PATH")))
;; keep eshell path in sync
(setq eshell-path-env (getenv "PATH"))
(let ((path (concat venv-current-dir
venv-executables-dir
path-separator
(getenv "PATH"))))
(setenv "PATH" path)
;; keep eshell path in sync
(setq eshell-path-env path))
(setenv "VIRTUAL_ENV" venv-current-dir)
(venv--set-venv-gud-pdb-command-name)
(run-hooks 'venv-postactivate-hook))
Expand Down

0 comments on commit b4fd61a

Please sign in to comment.