code: 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_contents().decode()
              return (1, outputStr)
          return (0, "")
docs: 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.