#NEWLINE# def __init__( self , logdir ) : #NEWLINE# #INDENT# self . logdir = os . path . normpath ( os . path . abspath ( os . path . expanduser ( os . path . expandvars ( logdir ) ) ) ) #NEWLINE# if ( not os . path . exists ( self . logdir ) ) : #NEWLINE# #INDENT# os . makedirs ( self . logdir ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for f in os . listdir ( logdir . logdir ) : #NEWLINE# #INDENT# f = os . path . join ( self . logdir , f ) #NEWLINE# if os . path . isfile ( f ) : #NEWLINE# #INDENT# os . unlink ( f ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . stack = [ ] #NEWLINE# self . testsuite = None #NEWLINE# self . environment = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# }