Skip to content

Commit b24c71f

Browse files
committed
add return value to LtSpiceToLatex
1 parent 1203374 commit b24c71f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

LTspiceToTexConverter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,5 +478,9 @@ def CreateDevFromLib(name, scale=1/64):
478478
f.write('\n\\end{document}')
479479

480480
f.close()
481+
f = open(saveFile, "r")
482+
temp = f.read()
483+
f.close()
481484

482485
print('Congratulations. The run was successful.')
486+
return temp

simpleRun.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
fileName_input = 'Draft.asc'
1313
print("input: ", fileName_input)
1414

15-
LtSpiceToLatex(filenameLTspice=fileName_input,
16-
lt_spice_directory=os.path.expanduser(path_ltspice),
17-
fullExample=1)
15+
out = LtSpiceToLatex(filenameLTspice=fileName_input,
16+
lt_spice_directory=os.path.expanduser(path_ltspice),
17+
fullExample=1)
18+
19+
# print(out)

0 commit comments

Comments
 (0)