File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 55import sys
66
77from buildozer .targets .android import TargetAndroid
8+ from buildozer import USE_COLOR
89from os .path import join , expanduser , realpath
910
1011
@@ -17,8 +18,9 @@ class TargetAndroidNew(TargetAndroid):
1718 def __init__ (self , buildozer ):
1819 super (TargetAndroidNew , self ).__init__ (buildozer )
1920 self ._build_dir = join (self .buildozer .platform_dir , 'build' )
20- self ._p4a_cmd = ('python -m pythonforandroid.toolchain '
21- '--storage-dir={} ' ).format (self ._build_dir )
21+ color = 'always' if USE_COLOR else 'never'
22+ self ._p4a_cmd = ('python -m pythonforandroid.toolchain --color={} '
23+ '--storage-dir={} ' ).format (color , self ._build_dir )
2224
2325 def _p4a (self , cmd , ** kwargs ):
2426 kwargs .setdefault ('cwd' , self .pa_dir )
You can’t perform that action at this time.
0 commit comments