ios: correctly check ios platform for adding the 'YourApp' directory.

This commit is contained in:
Mathieu Virbel 2012-10-19 07:37:20 +02:00
parent d82f9eb46c
commit 7e879baeff
1 changed files with 5 additions and 7 deletions

View File

@ -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):