X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-base.git/blobdiff_plain/487b9c1bf751c864387a47c9140dc85bb4bbf5ec..c4e6b2806febb24d73d79ec91431e0deaa8cee24:/python/invirt/config.py diff --git a/python/invirt/config.py b/python/invirt/config.py index 69cb899..0e906d5 100644 --- a/python/invirt/config.py +++ b/python/invirt/config.py @@ -6,13 +6,11 @@ from os import rename from os.path import getmtime from contextlib import closing -default_src_path = '/etc/invirt/master.yaml' -default_cache_path = '/var/lib/invirt/cache.json' -lock_path = '/var/lib/invirt/cache.lock' +src_path = '/etc/invirt/master.yaml' +cache_path = '/var/lib/invirt/cache.json' +lock_path = '/var/lib/invirt/cache.lock' -def load(src_path = default_src_path, - cache_path = default_cache_path, - force_refresh = False): +def load(force_refresh = False): """ Try loading the configuration from the faster-to-load JSON cache at cache_path. If it doesn't exist or is outdated, load the configuration