parameters: (self)
return_statement: return None
docstring: Perform setup.
          :return: Error msg or none
docstring_summary: Perform setup.
          :return: Error msg or none
docstring_tokens: Perform setup . : return : Error msg or none
function: def setup(self):
          """
              Perform setup.
          :return: Error msg or none
          """
          if not os.path.exists(self.c2xml_path):
              return "Provided c2xml path:" + str(self.c2xml_path) + " does not exist."
          if not os.path.isdir(self.kernel_src_dir) or not os.path.isdir(os.path.join(self.kernel_src_dir, 'include')):
              return "Provided kernel src directory is invalid. " \
                     "The base directory is not present or it does not contain include folder:" + \
                     str(self.kernel_src_dir) + ", " + os.path.join(self.kernel_src_dir, 'include')
          if self.hdr_file_list is None:
              return "No file specified to output hdr file list."
          return None
function_tokens: def setup ( self ) : if not os . path . exists ( self . c2xml_path ) : return "Provided c2xml path:" + str ( self . c2xml_path ) + " does not exist." if not os . path . isdir ( self . kernel_src_dir ) or not os . path . isdir ( os . path . join ( self . kernel_src_dir , 'include' ) ) : return "Provided kernel src directory is invalid. " "The base directory is not present or it does not contain include folder:" + str ( self . kernel_src_dir ) + ", " + os . path . join ( self . kernel_src_dir , 'include' ) if self . hdr_file_list is None : return "No file specified to output hdr file list." return None