tito/kivy — Issue #302: app_with_kv_in_template1.py     doesn't work    on Windows
Author: guoguofish
Created: 2011-11-04 05:28:31+00:00
State: open

This file is at ....kivy\examples\application . I run it on Windows XP, but it doesn't work.

So I replace the statement at 313 line at app.py like this:

if hasattr(self.__class__, 'kv_directory'):
kv_directory = dirname(getfile(self.__class__)) + os.sep + self.__class__.kv_directory
elif self.options.has_key('kv_directory'):
kv_directory = dirname(getfile(self.__class__)) + os.sep + self.options.get('kv_directory')
else:
kv_directory = dirname(getfile(self.__class__))