parameters: (self, action, text = None, extension = "")
return_statement: return (0, "")
docstring: Tries to execute the given action with optional source file
          contents <text> and optional source file extension <extension>,
          Returns the status (0 : failed, 1 : ok) and the contents of the
          output file.
docstring_summary: Tries to execute the given action with optional source file
          contents <text> and optional source file extension <extension>,
          Returns the status (0 : failed, 1 : ok) and the contents of the
          output file.
docstring_tokens: Tries to execute the given action with optional source file contents <text > and optional source file extension <extension > Returns the status ( 0 : failed 1 : ok ) and the contents of the output file .
function: def TryAction(self, action, text = None, extension = ""):
          """Tries to execute the given action with optional source file
          contents <text> and optional source file extension <extension>,
          Returns the status (0 : failed, 1 : ok) and the contents of the
          output file.
          """
          builder = SCons.Builder.Builder(action=action)
          self.env.Append( BUILDERS = {'SConfActionBuilder' : builder} )
          ok = self.TryBuild(self.env.SConfActionBuilder, text, extension)
          del self.env['BUILDERS']['SConfActionBuilder']
          if ok:
              outputStr = self.lastTarget.get_text_contents()
              return (1, outputStr)
          return (0, "")
function_tokens: def TryAction ( self , action , text = None , extension = "" ) : builder = SCons . Builder . Builder ( action = action ) self . env . Append ( BUILDERS = { 'SConfActionBuilder' : builder } ) ok = self . TryBuild ( self . env . SConfActionBuilder , text , extension ) del self . env [ 'BUILDERS' ] [ 'SConfActionBuilder' ] if ok : outputStr = self . lastTarget . get_text_contents ( ) return ( 1 , outputStr ) return ( 0 , "" )