parameters: (self)
docstring: Confirm correctness of self.directory.
  
      If it exists, happiness.  If not, try and figure it out in a
      manner similar to FindBundlesFile().  The 'figure it out' case
      happens with buildbot where the directory isn't specified
      explicitly.
docstring_summary: Confirm correctness of self.directory.
docstring_tokens: Confirm correctness of self . directory .
function: def ConfirmDirectory(self):
      """Confirm correctness of self.directory.
  
      If it exists, happiness.  If not, try and figure it out in a
      manner similar to FindBundlesFile().  The 'figure it out' case
      happens with buildbot where the directory isn't specified
      explicitly.
      """
      if (not self.directory and
          not (self.options.target and self.options.build_dir)):
        logging.fatal('Must use --directory or (--target and --build-dir)')
        sys.exit(1)
  
      if not self.directory:
        self.directory = os.path.join(self.options.build_dir,
                                      self.PlatformBuildPrefix(),
                                      self.options.target)
  
      if os.path.exists(self.directory):
        logging.info('Directory: ' + self.directory)
        return
      else:
        logging.fatal('Directory ' +
                      self.directory + ' doesn\'t exist')
        sys.exit(1)
function_tokens: def ConfirmDirectory ( self ) : if ( not self . directory and not ( self . options . target and self . options . build_dir ) ) : logging . fatal ( 'Must use --directory or (--target and --build-dir)' ) sys . exit ( 1 ) if not self . directory : self . directory = os . path . join ( self . options . build_dir , self . PlatformBuildPrefix ( ) , self . options . target ) if os . path . exists ( self . directory ) : logging . info ( 'Directory: ' + self . directory ) return else : logging . fatal ( 'Directory ' + self . directory + ' doesn\'t exist' ) sys . exit ( 1 )