Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have used this approach:

tmpstdout = sys.stdout
HideProgress=True  

#WRITE TO 'NOWHERE' FILE (USED FOR HIDEPROGRESS) ----
class DummyFile(object):
    def write(self, x): pass

import redirect
redirect.psse2py()
if HideProgress==True: sys.stdout = DummyFile()
psspy.psseinit(buses=80000)                          #Any API that has Reporting or Progress
sys.stdout=tmpstdout

I have used this approach:

tmpstdout = sys.stdout
HideProgress=True  

#WRITE TO 'NOWHERE' FILE (USED FOR HIDEPROGRESS) ----
class DummyFile(object):
    def write(self, x): pass

import redirect
redirect.psse2py()
if HideProgress==True: sys.stdout = DummyFile()
psspy.psseinit(buses=80000)                          #Any API that has Reporting or Progress
sys.stdout=tmpstdout

link text

I have used this approach:

tmpstdout = sys.stdout
HideProgress=True  

#WRITE TO 'NOWHERE' FILE (USED FOR HIDEPROGRESS) ----
class DummyFile(object):
    def write(self, x): pass

import redirect
redirect.psse2py()
if HideProgress==True: sys.stdout = DummyFile()
psspy.psseinit(buses=80000)                          #Any API that has Reporting or Progress
sys.stdout=tmpstdout

link text3phasee.com