Patch lego to solve build issues

This commit is contained in:
Silvia/Hiro 2021-11-03 00:45:27 +01:00
parent 637cc6c7d5
commit 38d2ab26f4

View File

@ -133,6 +133,8 @@ class Translations():
def merge_pot(self, from_filenames, to_filename):
msgcat=locate_executable('msgcat')
if msgcat is None:
msgcat="/usr/bin/msgcat"
cmdline=[msgcat, "--use-first"]
cmdline.extend(from_filenames)
cmdline.extend(("-o", to_filename))
@ -141,6 +143,8 @@ class Translations():
def parse_templates(self, to_filename):
pybabel=locate_executable('pybabel')
if pybabel is None:
pybabel="/usr/bin/pybabel"
cmdline=[pybabel, 'extract', '-F', 'babel.cfg', "-o", to_filename, "./"]
reporter.report_debug_info('pybabel cmd line', cmdline)
portable_popen(cmdline).wait()