mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-31 13:25:40 +00:00 
			
		
		
		
	Tweak to get invoke command to work on mac
This commit is contained in:
		
							
								
								
									
										4
									
								
								tasks.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tasks.py
									
									
									
									
									
								
							| @@ -1,5 +1,6 @@ | |||||||
| """Invoke tasks for building the app""" | """Invoke tasks for building the app""" | ||||||
|  |  | ||||||
|  | import sys | ||||||
| from invoke import task | from invoke import task | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -12,7 +13,8 @@ def clean(c): | |||||||
| @task | @task | ||||||
| def translate(c): | def translate(c): | ||||||
|     """Update translation files""" |     """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]) | @task(pre=[clean, translate]) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user