Generate locales.zip parent dir if needed

This commit is contained in:
Kovid Goyal 2020-01-07 21:33:17 +05:30
parent 38d463220c
commit e307caafe8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -530,6 +530,8 @@ class Translations(POT): # {{{
from calibre.utils.localization import get_iso639_translator, get_language, get_iso_language
self.info('Compiling', name, 'translations...')
srcbase = self.j(self.d(self.SRC), 'translations', name)
if not os.path.exists(srcbase):
os.makedirs(srcbase)
fmap = {}
files = []
stats = {}