Skip to content

Commit 6ba9e30

Browse files
committed
Resolve absolute path to local recipes
This is necessary when using patches in a local recipe since `Recipe.apply_patch` assumes the recipe directory is absolute and uses `patch -d` to change directories. It could just be fixed there, but this ensures that recipe directories are always absolute.
1 parent 3dcd0d3 commit 6ba9e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/toolchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ def add_parser(subparsers, *args, **kwargs):
717717

718718
self._archs = args.arch
719719

720-
self.ctx.local_recipes = args.local_recipes
720+
self.ctx.local_recipes = realpath(args.local_recipes)
721721
self.ctx.copy_libs = args.copy_libs
722722

723723
self.ctx.activity_class_name = args.activity_class_name

0 commit comments

Comments
 (0)