#NEWLINE# def platform_root( install_root , build_type = 'dynamic' ) : #NEWLINE# #INDENT# '\n    Given the root directory of an SDK installation, returns the platform specific installation\n    root.\n\n    ' #NEWLINE# if ( build_type not in ( 'static' , 'dynamic' ) ) : #NEWLINE# #INDENT# raise ValueError ( 'build_type must be either "static" or "dynamic"' ) #NEWLINE# #UNINDENT# platform_name = str ( ( ( platform . system ( ) + '-' ) + platform . architecture ( ) [ 0 ] ) ) . lower ( ) #NEWLINE# return os . path . join ( install_root , build_type , platform_name )