We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b41e407 commit db4c8a8Copy full SHA for db4c8a8
le-python.el
@@ -298,7 +298,8 @@ it at one time."
298
(defvar lispy--python-init-file nil)
299
300
(defun lispy--python-poetry-name ()
301
- (let ((pyproject (expand-file-name "pyproject.toml" (counsel-locate-git-root))))
+ (let ((pyproject
302
+ (file-name-directory (locate-dominating-file (buffer-file-name) "pyproject.toml"))))
303
(and (file-exists-p pyproject)
304
(not (equal python-shell-interpreter "python"))
305
(with-current-buffer (find-file-noselect pyproject)
0 commit comments