forked from Github-Mirrors/canaille
fix: relative translation path in build.py
to avoid errors when launching the demo clients
This commit is contained in:
parent
9218f2c4ab
commit
270349664c
1 changed files with 4 additions and 1 deletions
5
build.py
5
build.py
|
@ -1,8 +1,11 @@
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
def create_mo_files(setup_kwargs):
|
def create_mo_files(setup_kwargs):
|
||||||
from babel.messages.frontend import compile_catalog
|
from babel.messages.frontend import compile_catalog
|
||||||
|
|
||||||
cmd = compile_catalog()
|
cmd = compile_catalog()
|
||||||
cmd.directory = "canaille/translations"
|
cmd.directory = os.path.join(os.path.dirname(__file__), "canaille", "translations")
|
||||||
cmd.quiet = True
|
cmd.quiet = True
|
||||||
cmd.statistics = True
|
cmd.statistics = True
|
||||||
cmd.finalize_options()
|
cmd.finalize_options()
|
||||||
|
|
Loading…
Reference in a new issue