#NEWLINE# def get_cache( self , subject ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . auxfile . get_surf ( subject , 'fiducial' ) #NEWLINE# import hashlib #NEWLINE# hashname = ( 'pycx_%s' % hashlib . md5 ( self . auxfile . h5 . filename ) . hexdigest ( ) [ ( - 8 ) : ] ) #NEWLINE# cachedir = os . path . join ( tempfile . gettempdir ( ) , self , subject ) #NEWLINE# #UNINDENT# except ( AttributeError , IOError ) : #NEWLINE# #INDENT# cachedir = os . path . join ( self . filestore , subject , 'cache' ) #NEWLINE# #UNINDENT# if ( not os . path . exists ( cachedir ) ) : #NEWLINE# #INDENT# os . makedirs ( cachedir ) #NEWLINE# #UNINDENT# return cachedir