Skip to content

Commit 77fc345

Browse files
committed
Merge pull request #338 from kived/android_new-color
use p4a --color argument
2 parents 0af7976 + c0aae22 commit 77fc345

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

buildozer/targets/android_new.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import sys
66

77
from buildozer.targets.android import TargetAndroid
8+
from buildozer import USE_COLOR
89
from 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)

0 commit comments

Comments
 (0)