-import json, yaml
+import json
from invirt.common import *
from os.path import getmtime
# written.
@with_lock_file('/var/lib/invirt/cache.lock')
def cfg():
+ import yaml
cfg = with_closing(file(src_path))(lambda f: yaml.load(f, default_loader))
try: with_closing(file(cache_path, 'w'))(lambda f: f.write(json.write(cfg)))
except: pass # silent failure