From fdb2b5fc5ab1a48969209fef91ebf9793531f33e Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Sun, 10 Jan 2016 22:37:54 +0000 Subject: [PATCH] Fixed hardcoded local dir --- pythonforandroid/recipe.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pythonforandroid/recipe.py b/pythonforandroid/recipe.py index 79d100d060..9b93d489f3 100644 --- a/pythonforandroid/recipe.py +++ b/pythonforandroid/recipe.py @@ -921,7 +921,10 @@ def get_recipe_env(self, arch): ensure_dir(liblink_path) if self.ctx.python_recipe.from_crystax: - env['CFLAGS'] = '-I/home/asandy/android/crystax-ndk-10.3.0/sources/python/{}/include/python '.format(self.ctx.python_recipe.version) + env['CFLAGS'] + env['CFLAGS'] = '-I{} '.format( + join(self.ctx.ndk_dir, 'sources', 'python', + self.ctx.python_recipe.version, 'include', + 'python')) + env['CFLAGS'] return env