aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-22 18:51:53 +0100
committerMax Kellermann <max@duempel.org>2015-01-22 18:51:53 +0100
commit212b0faf0c370968b475dbc7725e89ab2dcfb900 (patch)
tree680bd092035fbd15ab16fa916e437553cd161a69
parent276a0d9500b8efc879e4f0c23e9d0e361849e295 (diff)
downloadmpd-212b0faf0c370968b475dbc7725e89ab2dcfb900.tar.gz
mpd-212b0faf0c370968b475dbc7725e89ab2dcfb900.tar.xz
mpd-212b0faf0c370968b475dbc7725e89ab2dcfb900.zip
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.
Diffstat (limited to '')
-rwxr-xr-xandroid/build.py2
1 files changed, 1 insertions, 1 deletions
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')