android/build.py: use os.path.abspath() to build mpd_path

Fixes a bug that occurs when runing "build.py" from inside the
"android" directory.
This commit is contained in:
Max Kellermann 2015-01-22 18:51:53 +01:00
parent 276a0d9500
commit 212b0faf0c
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if not os.path.isdir(ndk_path):
sys.exit(1) sys.exit(1)
# the path to the MPD sources # the path to the MPD sources
mpd_path = os.path.dirname(os.path.dirname(sys.argv[0])) or '.' mpd_path = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]) or '.', '..'))
# output directories # output directories
lib_path = os.path.abspath('lib') lib_path = os.path.abspath('lib')