diff --git a/recipes/SDL/recipe.py b/recipes/SDL/recipe.py index f351c1a..8f2bfb1 100644 --- a/recipes/SDL/recipe.py +++ b/recipes/SDL/recipe.py @@ -10,7 +10,8 @@ def _git_cook(env: Environment, repo: dict) -> dict: if os.path.exists(os.path.join(repo['checkout_root'], 'cmake', 'GetGitRevisionDescription.cmake')): try: - repo['repo'].git.apply('--unsafe-paths', '--directory', repo['checkout_root'], os.path.join(env['SPP_DIR'], 'recipes', 'SDL', 'fix_sdl3_from_worktree.patch')) + recipe_folder = os.path.dirname(__file__) + repo['repo'].git.apply('--unsafe-paths', '--directory', repo['checkout_root'], os.path.join(recipe_folder, 'fix_sdl3_from_worktree.patch')) except: # either already applied or not applicable anymore pass