()
| 191 | |
| 192 | |
| 193 | def setup(): |
| 194 | global cachedir, cachelock, cachelock_name |
| 195 | # figure out the root directory for all caching |
| 196 | cachedir = Path(config.CACHE) |
| 197 | |
| 198 | # since the lock itself lives inside the cache directory we need to ensure it |
| 199 | # exists. |
| 200 | ensure() |
| 201 | cachelock_name = Path(cachedir, 'cache.lock') |
| 202 | cachelock = filelock.FileLock(cachelock_name) |
| 203 | |
| 204 | |
| 205 | def ensure_setup(): |
no test coverage detected