Skip to content

Commit

Permalink
Make anaconda & pipenv integrations remote-aware
Browse files Browse the repository at this point in the history
Resolve paths to pipenv and python-shell-interpreter on the remote if
over tramp.
  • Loading branch information
hlissner committed Jan 9, 2021
1 parent 5da3641 commit c8bfbda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/lang/python/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
(unless (or (bound-and-true-p lsp-mode)
(bound-and-true-p eglot--managed-mode)
(bound-and-true-p lsp--buffer-deferred)
(not (executable-find python-shell-interpreter)))
(not (executable-find python-shell-interpreter t)))
(anaconda-mode +1))))
:config
(set-company-backend! 'anaconda-mode '(company-anaconda))
Expand Down Expand Up @@ -207,7 +207,7 @@
(set-eval-handler! 'python-mode
'((:command . (lambda () python-shell-interpreter))
(:exec (lambda ()
(if-let* ((bin (executable-find "pipenv"))
(if-let* ((bin (executable-find "pipenv" t))
(_ (pipenv-project-p)))
(format "PIPENV_MAX_DEPTH=9999 %s run %%c %%o %%s %%a" bin)
"%c %o %s %a")))
Expand Down

0 comments on commit c8bfbda

Please sign in to comment.