def sdl_get_version(): """ Returns the installed SDL version. In Mac OS, we first check for the version of the installed SDL Framework bundle. If it's not available, we fallback to the version detection for all Unix systems. """ path, framework = _get_framework_path('SDL') if framework: plist = plistlib.readPlist(os.path.join(framework, 'Resources', 'Info.plist')) return plist['CFBundleVersion'] + " (SDL.framework)" return config_unix.sdl_get_version()
def sdl_get_version (): return config_unix.sdl_get_version()