, python , (, , ), :
(let* ((default-directory (find-correct-dir))
(process-environment (cons (format "PWD=%s" default-directory)
process-environment)))
(do-the-subprocess-thing))
Or if I want to throw away the rest of the environment:
(let* ((default-directory (find-correct-dir))
(process-environment (list (format "PWD=%s" default-directory))))
(do-the-subprocess-thing))
That is, I had to set both default-directory, and process-environment, and to the same value.
source
share