Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Method 1: Progress_Output

import psspy
ierr = psspy.progress_output(2,r"C:\Filename.txt", [0, 1])

Method 2: Redirect module (captures all output, not just the progress output)

import psspy, redirect, sys
redirect.psse2py()
old_stdout = sys.stdout
sys.stdout = open(r"C:\Filename.txt", 'w')

Method 1: Progress_Output

import psspy
ierr = psspy.progress_output(2,r"C:\Filename.txt", [0, 1])

Method 2: Redirect module (captures all output, not just the progress output)

import psspy, redirect, sys
redirect.psse2py()
old_stdout = sys.stdout
sys.stdout  # Incase you want to restore output back to the screen
sys.stdout = open(r"C:\Filename.txt", 'w')

Method 1: Progress_Output

import psspy
ierr = psspy.progress_output(2,r"C:\Filename.txt", [0, 1])
0])

Method 2: Redirect module (captures all output, not just the progress output)

import psspy, redirect, sys
redirect.psse2py()
old_stdout = sys.stdout  # Incase you want to restore output back to the screen
sys.stdout = open(r"C:\Filename.txt", 'w')