Skip to content

Commit b15d4ed

Browse files
xyce: logging
1 parent c22a742 commit b15d4ed

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

PySpice/Spice/Xyce/Server.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,14 @@ def __call__(self, spice_input):
110110
with open(input_filename, 'w') as f:
111111
f.write(str(spice_input))
112112

113-
process = subprocess.Popen((self._xyce_command,
114-
'-r', output_filename,
115-
input_filename),
116-
stdin=subprocess.PIPE,
117-
stdout=subprocess.PIPE,
118-
stderr=subprocess.PIPE)
113+
command = (self._xyce_command, '-r', output_filename, input_filename)
114+
self._logger.info('Run {}'.format(' '.join(command)))
115+
process = subprocess.Popen(
116+
command,
117+
stdin=subprocess.PIPE,
118+
stdout=subprocess.PIPE,
119+
stderr=subprocess.PIPE,
120+
)
119121
stdout, stderr = process.communicate()
120122

121123
self._parse_stdout(stdout)

0 commit comments

Comments
 (0)