def createAssembly(file_id, namespace_id, bar_num, default_filename='foo'):
 file_name = ((((Directory.GetCurrentDirectory() + '\\') + default_filename) + str(file_id)) + '.cs')
 file = open(file_name, 'w')
 print >>file, (cs_ipy % (str(namespace_id), bar_num))
 file.close()
 compileAssembly(file_name)

def createAssembly ( file_id , namespace_id , bar_num , default_filename = 'foo' ) : file_name = ( ( ( ( Directory . GetCurrentDirectory ( ) + '\\' ) + default_filename ) + str ( file_id ) ) + '.cs' ) file = open ( file_name , 'w' ) print >> file , ( cs_ipy % ( str ( namespace_id ) , bar_num ) ) file . close ( ) compileAssembly ( file_name )
helper function creates a single "foo" assembly .