From 7e879baeffa9432b96a5f44c6c6b8dadf5199056 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 19 Oct 2012 07:37:20 +0200 Subject: [PATCH] ios: correctly check ios platform for adding the 'YourApp' directory. --- kivy/resources.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/kivy/resources.py b/kivy/resources.py index c741924b2..4ea64a0a3 100644 --- a/kivy/resources.py +++ b/kivy/resources.py @@ -11,17 +11,15 @@ __all__ = ('resource_find', 'resource_add_path', 'resource_remove_path') from os.path import join, dirname, exists from kivy import kivy_data_dir +from kivy.utils import platform from kivy.logger import Logger import sys import kivy -resource_paths = [ - '.', - dirname(sys.argv[0]), - # XXX iOS Hack; do properly. not sure how yet - join(dirname(sys.argv[0]), 'YourApp'), - dirname(kivy.__file__), - join(kivy_data_dir, '..')] +resource_paths = ['.', dirname(sys.argv[0])] +if platform() == 'ios': + resource_paths += [join(dirname(sys.argv[0]), 'YourApp')] +resource_paths += [dirname(kivy.__file__), join(kivy_data_dir, '..')] def resource_find(filename):