def METHOD_NAME(self):
    search_directories = [
        ('/Applications/Xcode.app/Contents/Developer/Platforms/'
         'iPhoneOS.platform/Developer/usr/bin/'),
        '/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/']
    search_directories += environ.get('PATH', '').split(':')
    for directory in search_directories:
        fn = join(directory, 'texturetool')
        if not exists(fn):
            continue
        print('Found texturetool at {}'.format(directory))
        self.texturetool = fn
        return
    print('Error: Unable to locate "texturetool".\n'
          'Please install the iPhone SDK, or the PowerVR SDK.\n'
          'Then make sure that "texturetool" is available in your PATH.')
    exit(1)