From 212b0faf0c370968b475dbc7725e89ab2dcfb900 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Thu, 22 Jan 2015 18:51:53 +0100
Subject: 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.
---
 android/build.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'android')

diff --git a/android/build.py b/android/build.py
index 751fce167..351e881cf 100755
--- a/android/build.py
+++ b/android/build.py
@@ -23,7 +23,7 @@ if not os.path.isdir(ndk_path):
     sys.exit(1)
 
 # 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
 lib_path = os.path.abspath('lib')
-- 
cgit v1.2.3