aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-14 23:23:24 +0100
committerMax Kellermann <max@duempel.org>2015-01-14 23:23:24 +0100
commitf4627acc48f51dce52bb81bdbe5be067bed0c1c8 (patch)
treec4b48ce139a9415ed23e459d8cc56b8758f6e157
parent2b1194d57493a0834e3bf389f8480b6dde3645f2 (diff)
downloadmpd-f4627acc48f51dce52bb81bdbe5be067bed0c1c8.tar.gz
mpd-f4627acc48f51dce52bb81bdbe5be067bed0c1c8.tar.xz
mpd-f4627acc48f51dce52bb81bdbe5be067bed0c1c8.zip
win32/build.py: prepend "./" to "configure" if path is empty
Fixes in-tree build when the script is called as "win32/build.py" and not "./win32/build.py".
Diffstat (limited to '')
-rwxr-xr-xwin32/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/build.py b/win32/build.py
index 09fb79e38..c1a423fbc 100755
--- a/win32/build.py
+++ b/win32/build.py
@@ -15,7 +15,7 @@ if configure_args[0] == '--64':
host_arch = 'x86_64-w64-mingw32'
# 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')