original_docstring:  Register a dictionary, loading index if present. 
              path: dictionary filename
          
docstring: Register a dictionary, loading index if present.
  path: dictionary filename
docstring_tokens: Register a dictionary loading index if present . path : dictionary filename
code: def load(self, path, variety):
          """ Register a dictionary, loading index if present. 
              path: dictionary filename
          """
          name=path
          path=os.path.join(config.default_dic_path,path)
          if not os.path.exists(path):
              raise Exception("Path %s does not exist." % path)
          if name==None:
              name=os.path.split(path)[1]
          from config import _types
          dic=_types[variety](path,name)
          self[name]=dic
          dic.load_index()
          return dic
code_tokens: def load ( self , path , variety ) : name = path path = os . path . join ( config . default_dic_path , path ) if not os . path . exists ( path ) : raise Exception ( "Path %s does not exist." % path ) if name == None : name = os . path . split ( path ) [ 1 ] from config import _types dic = _types [ variety ] ( path , name ) self [ name ] = dic dic . load_index ( ) return dic
short_docstring: Register a dictionary, loading index if present.
short_docstring_tokens: Register a dictionary loading index if present .
comment: """ Register a dictionary, loading index if present. 
              path: dictionary filename
          """