mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
49b5bed673
commit
d60a3bff8f
@ -260,7 +260,7 @@ class Translations(POT): # {{{
|
||||
|
||||
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…
x
Reference in New Issue
Block a user