Python PSS/E get output as variable
问题 I am power engineer and I often use python in PSS/E program. I am stacked and I want your help as programmers. I have this small code: import os,sys PSSE_LOCATION = r"C:\Program Files\PTI\PSSE33\PSSBIN" sys.path.append(PSSE_LOCATION) os.environ['PATH'] = os.environ['PATH'] + ';' + PSSE_LOCATION import psspy import redirect redirect.psse2py() #-------------------------------- # PSS/E Saved case CASE = r"""D:\xxx\Desktop\TESTING\SUMMAX.sav""" if __name__ == '__main__': psspy.psseinit(2000)