aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/msgfmthelper.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/scripts/msgfmthelper.py')
-rw-r--r--mesonbuild/scripts/msgfmthelper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/scripts/msgfmthelper.py b/mesonbuild/scripts/msgfmthelper.py
index 3ddc9e6..b308f54 100644
--- a/mesonbuild/scripts/msgfmthelper.py
+++ b/mesonbuild/scripts/msgfmthelper.py
@@ -22,6 +22,7 @@ parser.add_argument('input')
parser.add_argument('output')
parser.add_argument('type')
parser.add_argument('podir')
+parser.add_argument('--msgfmt', default='msgfmt')
parser.add_argument('--datadirs', default='')
parser.add_argument('args', default=[], metavar='extra msgfmt argument', nargs='*')
@@ -32,6 +33,6 @@ def run(args: T.List[str]) -> int:
if options.datadirs:
env = os.environ.copy()
env.update({'GETTEXTDATADIRS': options.datadirs})
- return subprocess.call(['msgfmt', '--' + options.type, '-d', options.podir,
+ return subprocess.call([options.msgfmt, '--' + options.type, '-d', options.podir,
'--template', options.input, '-o', options.output] + options.args,
env=env)