Python Forum
what i would like to add to subprocess.Popen()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what i would like to add to subprocess.Popen()
#4
(Aug-22-2023, 02:15 AM)Skaperen Wrote: is cwd= the function to be called in the context of the forked child process?
I'm not sure about what this means, but I think the answer is yes because the cwd parameter does not change the working directory of the parent process. Here is what the documentation says
Output:
If cwd is not None, the function changes the working directory to cwd before executing the child. cwd can be a string, bytes or path-like object. On POSIX, the function looks for executable (or for the first item in args) relative to cwd if the executable path is a relative path. Changed in version 3.6: cwd parameter accepts a path-like object on POSIX. Changed in version 3.7: cwd parameter accepts a path-like object on Windows. Changed in version 3.8: cwd parameter accepts a bytes object on Windows.
Reply


Messages In This Thread
RE: what i would like to add to subprocess.Popen() - by Gribouillis - Aug-22-2023, 04:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pipe(s) in = subprocess.Popen() Skaperen 0 1,824 Feb-13-2021, 11:48 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020