fix for pathing issue when android.p4a_dir is defined (not using the default one downloaded by buildozer) and entries in android.library_references use relative paths from source.dir

This commit is contained in:
John Mark Diaz 2014-08-25 17:35:45 +08:00
parent fcf0b0aaf2
commit 7ffd0f3ed9

View file

@ -636,7 +636,7 @@ class TargetAndroid(Target):
self.buildozer.error('Invalid library reference (path not found): {}'.format(cref))
exit(1)
# get a relative path from the project file
ref = relpath(ref, dist_dir)
ref = relpath(ref, realpath(dist_dir))
# ensure the reference exists
references.append(ref)