Skip to content

Commit 8cf735d

Browse files
committed
le-python.el: Find lispy--python-middleware-file better
1 parent fa1ac1f commit 8cf735d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

le-python.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@ It didn't work great."
231231
(setq lispy-python-buf buf)
232232
(with-current-buffer lispy-python-buf
233233
(lispy-python-interaction-mode)
234+
(setq lispy--python-middleware-file
235+
(if (file-name-absolute-p lispy-python-middleware-file)
236+
lispy-python-middleware-file
237+
(expand-file-name "lispy-python.py" lispy-site-directory)))
234238
(setq lispy-python-buf buf)))
235239
(let ((lp (ignore-errors (lispy--eval-python-plain "lp"))))
236240
(unless (and lp (string-match-p "module 'lispy-python'" lp))

0 commit comments

Comments
 (0)