From 00740fb23b42dc84d53638cd9b0a7226218a1755 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 9 Jan 2015 16:50:31 +0100 Subject: [PATCH] android/build.py: prepend "./" to "configure" if path is empty Fixes in-tree build when the script is called as "android/build.py" and not "./android/build.py". --- android/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.py b/android/build.py index 8455dd6a9..751fce167 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])) +mpd_path = os.path.dirname(os.path.dirname(sys.argv[0])) or '.' # output directories lib_path = os.path.abspath('lib')