Common Lisp: Launch subprocess with different working directory than lisp process

前端 未结 3 1208
面向向阳花
面向向阳花 2021-01-14 02:08

Suppose I have a directory A, and subdirectory B. I cd into A and launch lisp. In that lisp process, I would like to launch a Python subprocess where Python sees B as its cu

3条回答
  •  甜味超标
    2021-01-14 02:43

    I ended up writing krzysz00's suggestion up into a package that can be found here.

    Then someone pointed out that UIOP comes with getcwd and chdir. If you have a fairly recent lisp, UIOP should come included with your edition of asdf.

提交回复
热议问题