Skip to content

Commit 149d9ea

Browse files
authored
Merge pull request kivy#857 from nocarryr/nocarryr-patch-1
Check if bdist_dir exists before removing
2 parents 1d86f6b + ec3b171 commit 149d9ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythonforandroid/bdistapk.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def prepare_build_dir(self):
8787
'that.')
8888

8989
bdist_dir = 'build/bdist.android-{}'.format(self.arch)
90-
rmtree(bdist_dir)
90+
if exists(bdist_dir):
91+
rmtree(bdist_dir)
9192
makedirs(bdist_dir)
9293

9394
globs = []

0 commit comments

Comments
 (0)