From e307caafe863eeec8487867b601c443e306454c5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 7 Jan 2020 21:33:17 +0530 Subject: [PATCH] Generate locales.zip parent dir if needed --- setup/translations.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/translations.py b/setup/translations.py index 6d36603ada..dd003a3de9 100644 --- a/setup/translations.py +++ b/setup/translations.py @@ -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 = {}