From caa4fdd2a1c324418af8904f4e145ed6b73c5e0c Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 19 Apr 2023 23:05:16 +1000 Subject: [PATCH] Tweak to get invoke command to work on mac --- tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index c1629db4..feda09d6 100644 --- a/tasks.py +++ b/tasks.py @@ -1,5 +1,6 @@ """Invoke tasks for building the app""" +import sys from invoke import task @@ -12,7 +13,8 @@ def clean(c): @task def translate(c): """Update translation files""" - c.run("cd lib/l10n && python collect_translations.py") + python = 'python3' if sys.platform.lower() == 'darwin' else 'python' + c.run(f"cd lib/l10n && {python} collect_translations.py") @task(pre=[clean, translate])