canaille-globuzma/build.py
Éloi Rivard 270349664c
fix: relative translation path in build.py
to avoid errors when launching the demo clients
2023-09-11 18:11:51 +02:00

17 lines
385 B
Python

import os
def create_mo_files(setup_kwargs):
from babel.messages.frontend import compile_catalog
cmd = compile_catalog()
cmd.directory = os.path.join(os.path.dirname(__file__), "canaille", "translations")
cmd.quiet = True
cmd.statistics = True
cmd.finalize_options()
cmd.run()
return setup_kwargs
if __name__ == "__main__":
create_mo_files({})