Skip to content

Commit ec3b171

Browse files
authored
Check if bdist_dir exists before removing
1 parent 1d86f6b commit ec3b171

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)