mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-16 16:35:39 +01:00
...
This commit is contained in:
parent
49b5bed673
commit
d60a3bff8f
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ def compile_group(self, files, handle_stats=None, file_ok=None, action_per_file=
|
|||
|
||||
def stats_cache(src, data=None):
|
||||
cname = self.cache_name(src) + '.stats.json'
|
||||
with open(self.j(build_cache_dir(), cname), ('rb' if data is None else 'wb')) as f:
|
||||
with open(self.j(self.cache_dir, cname), ('rb' if data is None else 'wb')) as f:
|
||||
if data is None:
|
||||
return json.load(f)
|
||||
json.dump(data, f)
|
||||
|
|
|
|||
Loading…
Reference in a new issue