Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
return cache directory for a given EUPS product stack in the user's 
data directory.  None is returned if a directory cannot be determined
@param eupsPathDir   the product stack to return a cache directory for
@param userDataDir   the user's personal data directory.  If not given,
                        it is set to the value returned by 
                        defaultUserDataDir() (by default ~/.eups).

        def userStackCacheFor(eupsPathDir, userDataDir=None):
    """
    return cache directory for a given EUPS product stack in the user's 
    data directory.  None is returned if a directory cannot be determined
    @param eupsPathDir   the product stack to return a cache directory for
    @param userDataDir   the user's personal data directory.  If not given,
                            it is set to the value returned by 
                            defaultUserDataDir() (by default ~/.eups).
    """
    if not userDataDir:
        userDataDir = defaultUserDataDir()
    if not userDataDir:
        return None

    return os.path.join(userDataDir,"_caches_", eupsPathDir[1:])
        


src/e/u/eups-HEAD/python/eups/Eups.py   eups(Download)
    def _userStackCache(self, eupsPathDir):
        if not self.userDataDir:
            return None
        return utils.userStackCacheFor(eupsPathDir, self.userDataDir)
 
        for tag, owner in self.tags.owners.items():
            for p in self.path:
                userCacheDir = utils.userStackCacheFor(p, userDataDir=utils.defaultUserDataDir(owner))
                extraDb = Database(self.getUpsDB(p), userCacheDir, owner=owner)
 

src/e/u/eups-HEAD/python/eups/app.py   eups(Download)
        persistDir = dbpath
        if p != userDataDir:            # no need to use a surrogate directory as we can write userDataDir
            persistDir = utils.userStackCacheFor(p, userDataDir)
 
        if not os.path.exists(persistDir):