<s> import os <EOL> from ... Helpers import plist_helper <EOL> from ... Helpers import path_helper <EOL> from ... Helpers import xcrun_helper <EOL> from . xcsdk import * <EOL> def LoadPlatforms ( ) : <EOL> platforms = list ( ) ; <EOL> platform_dir_path = os . path . join ( xcrun_helper . resolve_developer_path ( ) , '<STR_LIT>' ) ; <EOL> if os . path . exists ( platform_dir_path ) == True : <EOL> for platform_bundle in os . listdir ( platform_dir_path ) : <EOL> platform_path = os . path . join ( platform_dir_path , platform_bundle ) ; <EOL> platforms . append ( xcplatform ( platform_path ) ) ; <EOL> return platforms ; <EOL> class xcplatform ( object ) : <EOL> def __init__ ( self , path ) : <EOL> self . path = path ; <EOL> self . name = os . path . basename ( path ) ; <EOL> info_path = os . path . join ( path , '<STR_LIT>' ) ; <EOL> self . info = plist_helper . LoadPlistFromDataAtPath ( info_path ) ; <EOL> self . sdks = list ( ) ; <EOL> sdk_dir_path = os . path . join ( self . path , '<STR_LIT>' ) ; <EOL> if os . path . exists ( sdk_dir_path ) == True : <EOL> for sdk_bundle in os . listdir ( sdk_dir_path ) : <EOL> sdk_path = os . path . join ( sdk_dir_path , sdk_bundle ) ; <EOL> self . sdks . append ( xcsdk ( sdk_path ) ) ; </s>
