subprocess.h icon indicating copy to clipboard operation
subprocess.h copied to clipboard

Feature Request: set the cwd for created processes

Open rgrinberg opened this issue 3 years ago • 3 comments

What it says on the tin. Essentially inserting a chdir before the exec.

rgrinberg avatar Oct 15 '21 04:10 rgrinberg

Should be doable - but I don't have the bandwidth at present to do this.

sheredom avatar Oct 26 '21 15:10 sheredom

For windows: image For Linux: image

When I have time, I will submit the changes in the image above. Using the changes above is better than chdir because it will not damage the working directory of the parent process.

xianglin1998 avatar Dec 14 '23 04:12 xianglin1998

I look forward to the PR!

sheredom avatar Dec 17 '23 19:12 sheredom