def get_cache(self, subject):
        try:
            self.auxfile.get_surf(subject, "fiducial")
            #generate the hashed name of the filename and subject as the directory name
            import hashlib
            hashname = "pycx_%s"%hashlib.md5(self.auxfile.h5.filename).hexdigest()[-8:]
            cachedir = os.path.join(tempfile.gettempdir(), hashname, subject)
        except (__HOLE__, IOError):
            cachedir = os.path.join(self.filestore, subject, "cache")
            
        if not os.path.exists(cachedir):
            os.makedirs(cachedir)
        return cachedir
dataset/ETHPy150Open gallantlab/pycortex/cortex/database.py/Database.get_cache