mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Tweak to get invoke command to work on mac
This commit is contained in:
parent
8510034a81
commit
caa4fdd2a1
1 changed files with 3 additions and 1 deletions
4
tasks.py
4
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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue