Esempio n. 1
0
 def __init__(self, fullpath:str):
     Storage.__init__(self)
     self._content = {}
     from pydsl.Memory.Search.Searcher import MemorySearcher
     self._searcher = MemorySearcher(self)
     from pydsl.Config import GLOBALCONFIG
     from pydsl.Memory.Storage.File.Python import getFileTuple
     (_, _, fileBaseName, _) = getFileTuple(fullpath)
     import imp
     myobj = imp.load_source(fileBaseName, fullpath)
     self._content.update(myobj.mydict)
Esempio n. 2
0
 def __init__(self, fullpath:str):
     Storage.__init__(self)
     self._content = {}
     from pydsl.Memory.Search.Searcher import MemorySearcher
     self._searcher = MemorySearcher(self)
     from pydsl.Config import GLOBALCONFIG
     from pydsl.Memory.Storage.File.Python import getFileTuple
     (_, _, fileBaseName, _) = getFileTuple(fullpath)
     import imp
     myobj = imp.load_source(fileBaseName, fullpath)
     for element in myobj.mylist:
         self._content[self._generatekey(element)] = element