exit for frameworks only on darwin

This commit is contained in:
Akshay Arora 2015-12-18 01:32:04 +05:30
parent 593fe7cd79
commit abc940b1ed
1 changed files with 1 additions and 2 deletions

View File

@ -601,7 +601,7 @@ def determine_sdl2():
sdl2_path = environ.get('KIVY_SDL2_PATH', None)
if sdl2_flags and not sdl2_path:
if sdl2_flags and not sdl2_path and platform == 'darwin':
return sdl2_flags
# no pkgconfig info, or we want to use a specific sdl2 path, so perform
@ -610,7 +610,6 @@ def determine_sdl2():
split_chr = ';' if platform == 'win32' else ':'
sdl2_paths = sdl2_path.split(split_chr) if sdl2_path else []
inc_paths = sdl2_paths
if not sdl2_paths:
sdl_inc = join(dirname(sys.executable), 'include', 'SDL2')
if isdir(sdl_inc):