blob: 7c8e2fa5b99e78358d7d5d452d3532f01208d10b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import subprocess
result = subprocess.run(
["ngspice", "-b", "ng_test1.cir"],
capture_output=True,
text=True
)
print("Return code:", result.returncode)
print(result.stdout)
if result.stderr:
print("Errors:")
print(result.stderr)
|