1
0
Files
electrum/contrib/android/p4a_recipes/util.py
2021-05-01 08:07:19 +02:00

13 lines
461 B
Python

import os
class InheritedRecipeMixin:
def get_recipe_dir(self):
"""This is used to replace pythonforandroid.recipe.Recipe.get_recipe_dir.
If one of our local recipes inherits from a built-in p4a recipe, this override
ensures that potential patches and other local files used by the recipe will
be looked for in the built-in recipe's folder.
"""
return os.path.join(self.ctx.root_dir, 'recipes', self.name)