From 270349664c571ead0e41d770a8542020b654ba17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Mon, 11 Sep 2023 18:11:48 +0200 Subject: [PATCH] fix: relative translation path in build.py to avoid errors when launching the demo clients --- build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index eba4878e..cdaf25f6 100644 --- a/build.py +++ b/build.py @@ -1,8 +1,11 @@ +import os + + def create_mo_files(setup_kwargs): from babel.messages.frontend import compile_catalog cmd = compile_catalog() - cmd.directory = "canaille/translations" + cmd.directory = os.path.join(os.path.dirname(__file__), "canaille", "translations") cmd.quiet = True cmd.statistics = True cmd.finalize_options()