numpy 1.22.4 Pypi GitHub Homepage
Other Docs
NotesParametersReturns
exec_command(command, execute_in='', use_shell=None, use_tee=None, _with_python=1, **env)
deprecated

Use subprocess.Popen instead

Notes

On NT, DOS systems the returned status is correct for external commands. Wild cards will not work for non-posix systems or when use_shell=0.

Parameters

command : str

A concatenated string of executable and arguments.

execute_in : str

Before running command cd execute_in and after cd - .

use_shell : {bool, None}, optional

If True, execute sh -c command . Default None (True)

use_tee : {bool, None}, optional

If True use tee. Default None (True)

Returns

res : str

Both stdout and stderr messages.

Return (status,output) of executed command.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/distutils/exec_command.py#177
type: <class 'function'>
Commit: