Skip to content

Commit dab32b7

Browse files
authored
Merge pull request kivy#1262 from lufebe16/ensure-dirs
Added 2 tests to ensure directories exist.
2 parents 18a99b8 + 44e4a8b commit dab32b7

File tree

1 file changed

+2
-0
lines changed
  • pythonforandroid/bootstraps/sdl2/build

1 file changed

+2
-0
lines changed

pythonforandroid/bootstraps/sdl2/build/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def make_package(args):
232232
# Delete the old assets.
233233
try_unlink('src/main/assets/public.mp3')
234234
try_unlink('src/main/assets/private.mp3')
235+
ensure_dir('src/main/assets')
235236

236237
# In order to speedup import and initial depack,
237238
# construct a python27.zip
@@ -257,6 +258,7 @@ def make_package(args):
257258
# Prepare some variables for templating process
258259
default_icon = 'templates/kivy-icon.png'
259260
default_presplash = 'templates/kivy-presplash.jpg'
261+
ensure_dir('src/main/res/drawable')
260262
shutil.copy(args.icon or default_icon, 'src/main/res/drawable/icon.png')
261263
shutil.copy(args.presplash or default_presplash,
262264
'src/main/res/drawable/presplash.jpg')

0 commit comments

Comments
 (0)