canaille-globuzma/build.py

20 lines
362 B
Python
Raw Normal View History

2022-11-20 22:47:31 +00:00
import os
import subprocess
2022-05-14 21:58:26 +00:00
def create_mo_files(setup_kwargs):
print("Compile translations:")
2022-11-20 22:47:31 +00:00
subprocess.run(
[
"pybabel",
"compile",
"--directory",
os.path.dirname(__file__) + "/canaille/translations",
]
)
return setup_kwargs
if __name__ == "__main__":
create_mo_files({})