Subprocess Library
suggest changeSyntax
subprocess.call(*popenargs, timeout=None, **kwargs)subprocess.Popen(args, bufsize=-1, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=True, shell=False, cwd=None, env=None, universal_newlines=None, startupinfo=None, creationflags=0, restore_signals=True, start_new_session=False, pass_fds=(), *, user=None, group=None, extra_groups=None, encoding=None, errors=None, text=None, umask=-1, pipesize=-1, process_group=None)
Parameters
args| A single executable, or sequence of executable and arguments -'ls',['ls', '-la']shell| Run under a shell? On POSIX the shell is/bin/sh. On Windows it is theCOMSPECenvironment variable, usuallycmd.exe.cwd| Working directory of the child process
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents