Skip to content

Commit 61e8e58

Browse files
committed
Store executable as part of pythonic process property.
`pythonic-proper-environment-p' can't use `process-command' for remote interpreters because it will store "/bin/sh" instead of actual running executable.
1 parent d1d207b commit 61e8e58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythonic.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ process flag."
210210
(process-put process
211211
'pythonic
212212
(list
213+
:executable (pythonic-executable)
213214
:connection (pythonic-tramp-connection)
214215
:pythonpath (pythonic-get-pythonpath)
215216
:path (pythonic-get-path)
@@ -220,7 +221,7 @@ process flag."
220221
"Determine if python environment has been changed since PROCESS was started."
221222
(--if-let (process-get process 'pythonic)
222223
(and
223-
(equal (car (process-command process)) (pythonic-executable))
224+
(equal (plist-get it :executable) (pythonic-executable))
224225
(equal (plist-get it :connection) (pythonic-tramp-connection))
225226
(equal (plist-get it :pythonpath) (pythonic-get-pythonpath))
226227
(equal (plist-get it :path) (pythonic-get-path))

0 commit comments

Comments
 (0)