MCPcopy Index your code
hub / github.com/ipython/ipython / system

Function system

IPython/utils/_process_cli.py:25–36  ·  view source on GitHub ↗

system(cmd) should work in a cli environment on Mac OSX, Linux, and Windows

(cmd)

Source from the content-addressed store, hash-verified

23
24
25def system(cmd):
26 """
27 system(cmd) should work in a cli environment on Mac OSX, Linux,
28 and Windows
29 """
30 psi = System.Diagnostics.ProcessStartInfo(cmd)
31 psi.RedirectStandardOutput = True
32 psi.RedirectStandardError = True
33 psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal
34 psi.UseShellExecute = False
35 # Start up process:
36 reg = System.Diagnostics.Process.Start(psi)
37
38
39def getoutput(cmd):

Callers 5

page_fileFunction · 0.90
system_pipedMethod · 0.90
test_systemMethod · 0.90
test_system_quotesMethod · 0.90
commandMethod · 0.90

Calls

no outgoing calls

Tested by 3

test_systemMethod · 0.72
test_system_quotesMethod · 0.72
commandMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…