MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / Popen

Class Popen

tools/python-3.11.9-amd64/Lib/subprocess.py:749–2216  ·  view source on GitHub ↗

Execute a child program in a new process. For a complete description of the arguments see the Python documentation. Arguments: args: A string, or a sequence of program arguments. bufsize: supplied as the buffering argument to the open() function when creatin

Source from the content-addressed store, hash-verified

747
748
749class Popen:
750 """ Execute a child program in a new process.
751
752 For a complete description of the arguments see the Python documentation.
753
754 Arguments:
755 args: A string, or a sequence of program arguments.
756
757 bufsize: supplied as the buffering argument to the open() function when
758 creating the stdin/stdout/stderr pipe file objects
759
760 executable: A replacement program to execute.
761
762 stdin, stdout and stderr: These specify the executed programs' standard
763 input, standard output and standard error file handles, respectively.
764
765 preexec_fn: (POSIX only) An object to be called in the child process
766 just before the child is executed.
767
768 close_fds: Controls closing or inheriting of file descriptors.
769
770 shell: If true, the command will be executed through the shell.
771
772 cwd: Sets the current directory before the child is executed.
773
774 env: Defines the environment variables for the new process.
775
776 text: If true, decode stdin, stdout and stderr using the given encoding
777 (if set) or the system default otherwise.
778
779 universal_newlines: Alias of text, provided for backwards compatibility.
780
781 startupinfo and creationflags (Windows only)
782
783 restore_signals (POSIX only)
784
785 start_new_session (POSIX only)
786
787 process_group (POSIX only)
788
789 group (POSIX only)
790
791 extra_groups (POSIX only)
792
793 user (POSIX only)
794
795 umask (POSIX only)
796
797 pass_fds (POSIX only)
798
799 encoding and errors: Text mode encoding and error handling to use for
800 file objects stdin, stdout and stderr.
801
802 Attributes:
803 stdin, stdout, stderr, pid, returncode
804 """
805 _child_created = False # Set here since __del__ checks it
806

Callers 5

_find_exe_versionFunction · 0.90
get_ld_headersFunction · 0.90
subprocFunction · 0.90
callFunction · 0.70
runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected