예제 #1
0
 def loadProxyFileCache(self, restoreFromFile = True):
     """
     Initialize or update the proxy file cache for this proxy library.
     Will attempt to load a previous cache from file if restoreFromFile is true.
     """
     import filecache
     self._proxyFilePerUuid = None
     if restoreFromFile:
         try:
             cacheFile = getpath.getPath(os.path.join('cache', self.proxyName + '_filecache.mhc'))
             if os.path.isfile(cacheFile):
                 self._proxyFileCache = filecache.loadCache(cacheFile)
         except:
             log.debug("Failed to restore proxy list cache from file %s", cacheFile)
     self._proxyFileCache = proxy.updateProxyFileCache(self.paths, self.getFileExtension(), self._proxyFileCache, proxytype=self.getProxyType())
예제 #2
0
 def loadProxyFileCache(self, restoreFromFile=True):
     """
     Initialize or update the proxy file cache for this proxy library.
     Will attempt to load a previous cache from file if restoreFromFile is true.
     """
     import filecache
     self._proxyFilePerUuid = None
     if restoreFromFile:
         try:
             cacheFile = getpath.getPath(
                 os.path.join('cache', self.proxyName + '_filecache.mhc'))
             if os.path.isfile(cacheFile):
                 self._proxyFileCache = filecache.loadCache(cacheFile)
         except:
             log.debug("Failed to restore proxy list cache from file %s",
                       cacheFile)
     self._proxyFileCache = proxy.updateProxyFileCache(
         self.paths,
         self.getFileExtension(),
         self._proxyFileCache,
         proxytype=self.getProxyType())
예제 #3
0
 def loadCache(self):
     import filecache
     filename = getpath.getPath('cache/skeleton_filecache.mhc')
     if os.path.isfile(filename):
         self._skelFileCache = filecache.loadCache(filename)
예제 #4
0
 def loadCache(self):
     import filecache
     filename = getpath.getPath('cache/material_filecache.mhc')
     if os.path.isfile(filename):
         self._matFileCache = filecache.loadCache(filename)
 def loadCache(self):
     import filecache
     filename = getpath.getPath('cache/material_filecache.mhc')
     if os.path.isfile(filename):
         self._matFileCache = filecache.loadCache(filename)
예제 #6
0
 def loadCache(self):
     import filecache
     filename = getpath.getPath('cache/skeleton_filecache.mhc')
     if os.path.isfile(filename):
         self._skelFileCache = filecache.loadCache(filename)