Skip to content

Commit fdb2b5f

Browse files
committed
Fixed hardcoded local dir
1 parent 1ae14b9 commit fdb2b5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pythonforandroid/recipe.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,10 @@ def get_recipe_env(self, arch):
921921
ensure_dir(liblink_path)
922922

923923
if self.ctx.python_recipe.from_crystax:
924-
env['CFLAGS'] = '-I/home/asandy/android/crystax-ndk-10.3.0/sources/python/{}/include/python '.format(self.ctx.python_recipe.version) + env['CFLAGS']
924+
env['CFLAGS'] = '-I{} '.format(
925+
join(self.ctx.ndk_dir, 'sources', 'python',
926+
self.ctx.python_recipe.version, 'include',
927+
'python')) + env['CFLAGS']
925928

926929
return env
927930

0 commit comments

Comments
 (0)