#NEWLINE# def createPIT( path = None ) : #NEWLINE# #INDENT# if ( path == None ) : #NEWLINE# #INDENT# path = os . getcwd ( ) #NEWLINE# #UNINDENT# f = openFile ( path , 'muster' , 'r' ) #NEWLINE# g = open ( ( ( path + '/' ) + 'prePit' ) , 'w' ) #NEWLINE# for line in f : #NEWLINE# #INDENT# g . write ( line ) #NEWLINE# if ( '<StateModel name="TheState"' in line ) : #NEWLINE# #INDENT# insertStateModel ( path , g ) #NEWLINE# #UNINDENT# #UNINDENT# g . close ( ) #NEWLINE# f . close ( ) #NEWLINE# f = openFile ( path , 'prePit' , 'r' ) #NEWLINE# g = open ( ( ( path + '/' ) + 'pit.xml' ) , 'w' ) #NEWLINE# for line in f : #NEWLINE# #INDENT# g . write ( line ) #NEWLINE# if ( 'Create data model' in line ) : #NEWLINE# #INDENT# insertDataModel ( path , g ) #NEWLINE# #UNINDENT# #UNINDENT# g . close ( )