subprocess.h
subprocess.h copied to clipboard
Feature Request: set the cwd for created processes
What it says on the tin. Essentially inserting a chdir
before the exec
.
Should be doable - but I don't have the bandwidth at present to do this.
For windows:
For Linux:
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.
I look forward to the PR!