#NEWLINE# def setup_script( ) : #NEWLINE# #INDENT# setup_repo ( ) #NEWLINE# with open ( os . path . join ( ql . api . get_repo ( ) , 'testsuite.py' ) , 'w' ) as f : #NEWLINE# #INDENT# code = 'print("im in the root dir")' #NEWLINE# f . write ( code ) #NEWLINE# #UNINDENT# subdir = os . path . join ( ql . api . get_repo ( ) , 'test' ) #NEWLINE# if ( not os . path . exists ( subdir ) ) : #NEWLINE# #INDENT# os . mkdir ( subdir ) #NEWLINE# #UNINDENT# with open ( os . path . join ( subdir , 'testsuite.py' ) , 'w' ) as f : #NEWLINE# #INDENT# code = 'print("im in a subdir")' #NEWLINE# f . write ( subdir )