Skip to content

Commit db4c8a8

Browse files
benjamin-asdfEugeneNeuron
authored andcommitted
Use locate-dominating-file instead of counsel
1 parent b41e407 commit db4c8a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

le-python.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ it at one time."
298298
(defvar lispy--python-init-file nil)
299299

300300
(defun lispy--python-poetry-name ()
301-
(let ((pyproject (expand-file-name "pyproject.toml" (counsel-locate-git-root))))
301+
(let ((pyproject
302+
(file-name-directory (locate-dominating-file (buffer-file-name) "pyproject.toml"))))
302303
(and (file-exists-p pyproject)
303304
(not (equal python-shell-interpreter "python"))
304305
(with-current-buffer (find-file-noselect pyproject)

0 commit comments

Comments
 (0)