Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

print pss report to a file

Hello, I'm pretty new to pss and python in general, but I've made a few scripts. I have a problem, I want to export the contents of a report to a text file. I tried with this, but didn't manage to get it working:

f1=open('./testfile3.txt', 'w+')

psspy.zsys(0,4,[22,30,31,32])

psspy.zone_2(0,0,1)

print >> f1, psspy.zone_2(0,0,1)