presplash.filename and icon.filename only worked if source.dir was .

For any other value of source.dir presplash and icon were broken.
This commit is contained in:
Bob the Hamster 2013-02-06 14:49:17 -08:00
parent 6f1c779d04
commit a91108007a

View file

@ -377,13 +377,12 @@ class TargetAndroid(Target):
# add presplash
presplash = config.getdefault('app', 'presplash.filename', '')
if presplash:
build_cmd += ' --presplash {}'.format(join(self.buildozer.app_dir,
presplash))
build_cmd += ' --presplash {}'.format(join(self.buildozer.app_dir, '..', '..', '..', presplash))
# add icon
icon = config.getdefault('app', 'icon.filename', '')
if icon:
build_cmd += ' --icon {}'.format(join(self.buildozer.app_dir, icon))
build_cmd += ' --icon {}'.format(join(self.buildozer.app_dir, '..', '..', '..', icon))
# build only in debug right now.
if self.build_mode == 'debug':