There seems to be a bug with path return. If path was not recursive, you would return the path as a boolean. I have fixed it below.
[pre=#2D2D2D]def get_package_asset(package_name, file_name, get_path=False, recursive_search=False):
packages_path = sublime.packages_path()
sublime_package = package_name + “.sublime-package”
path = None
if os.path.exists(os.path.join(packages_path, package_name)):
if recursive_search:
path = _find_file(os.path.join(packages_path, package_name), file_name)
elif os.path.exists(os.path.join(packages_path, package_name, file_name)):
path = os.path.join(packages_path, package_name, file_name)[/pre]