Skip to content

Commit 7314a95

Browse files
committed
Made p4a ignore unextracted SDK files in buildozer dir
1 parent d1ad0d6 commit 7314a95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pythonforandroid/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ def prepare_build_environment(self, user_sdk_dir, user_ndk_dir,
187187
# # for debug tests of p4a
188188
possible_dirs = glob.glob(expanduser(join(
189189
'~', '.buildozer', 'android', 'platform', 'android-sdk-*')))
190+
possible_dirs = [d for d in possible_dirs if not
191+
(d.endswith('.bz2') or d.endswith('.gz'))]
190192
if possible_dirs:
191193
info('Found possible SDK dirs in buildozer dir: {}'.format(
192194
', '.join([d.split(os.sep)[-1] for d in possible_dirs])))

0 commit comments

Comments
 (0)