parameters: (self, config)
docstring: Load the extension register with values from a config file
          @param config: path to config file to load settings from
docstring_summary: Load the extension register with values from a config file
          @param config: path to config file to load settings from
docstring_tokens: Load the extension register with values from a config file @param config : path to config file to load settings from
function: def LoadFromConfig(self, config):
          """Load the extension register with values from a config file
          @param config: path to config file to load settings from
  
          """
          path = os.path.join(config, self.config)
          if not os.path.exists(path):
              self.LoadDefault()
          else:
              file_h = file(path, "rb")
              lines = file_h.readlines()
              file_h.close()
              for line in lines:
                  tmp = line.split(u'=')
                  if len(tmp) != 2:
                      continue
                  ftype = tmp[0].strip()
                  exts = tmp[1].split(u':')
                  self.__setitem__(ftype, exts)
function_tokens: def LoadFromConfig ( self , config ) : path = os . path . join ( config , self . config ) if not os . path . exists ( path ) : self . LoadDefault ( ) else : file_h = file ( path , "rb" ) lines = file_h . readlines ( ) file_h . close ( ) for line in lines : tmp = line . split ( u'=' ) if len ( tmp ) != 2 : continue ftype = tmp [ 0 ] . strip ( ) exts = tmp [ 1 ] . split ( u':' ) self . __setitem__ ( ftype , exts )