Skip to content

Added 2 tests to ensure directories exist. #1262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pythonforandroid/bootstraps/sdl2/build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def make_package(args):
# Delete the old assets.
try_unlink('src/main/assets/public.mp3')
try_unlink('src/main/assets/private.mp3')
ensure_dir('src/main/assets')

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