Skip to content

Commit 097dd66

Browse files
committed
le-python.el (lispy--python-proc): Adjust default-directory for poetry
1 parent f35eadf commit 097dd66

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

le-python.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,10 @@ it at one time."
348348
" "
349349
python-shell-interpreter-args)))
350350
(buffer
351-
(let ((python-shell-completion-native-enable nil))
351+
(let ((python-shell-completion-native-enable nil)
352+
(default-directory (if poetry-name
353+
(counsel-locate-git-root)
354+
default-directory)))
352355
(python-shell-make-comint
353356
python-binary-name proc-name nil nil))))
354357
(setq lispy--python-middleware-file

0 commit comments

Comments
 (0)