def _cache_key_to_dir(cachedir, func, argument_hash):
 parts = [cachedir]
 if isinstance(func, _basestring):
  parts.append(func)
 else:
  parts.append(_get_func_fullname(func))
 if (argument_hash is not None):
  parts.append(argument_hash)
 return os.path.join(*parts)

def _cache_key_to_dir ( cachedir , func , argument_hash ) : parts = [ cachedir ] if isinstance ( func , _basestring ) : parts . append ( func ) else : parts . append ( _get_func_fullname ( func ) ) if ( argument_hash is not None ) : parts . append ( argument_hash ) return os . path . join ( * parts )
compute directory associated with a given cache key .