aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-26 20:59:57 +0100
committerMax Kellermann <max@duempel.org>2015-01-26 20:59:57 +0100
commitcc70c5c67df6cf80bf8066b5d5150f0d3b0c882a (patch)
treecf092b95385aaeeb4d6ff029fda952137b90a1b6 /win32
parentae7e1a22cb3bc6029a6f270c3a68a139dfa86085 (diff)
downloadmpd-cc70c5c67df6cf80bf8066b5d5150f0d3b0c882a.tar.gz
mpd-cc70c5c67df6cf80bf8066b5d5150f0d3b0c882a.tar.xz
mpd-cc70c5c67df6cf80bf8066b5d5150f0d3b0c882a.zip
win32/build.py: use os.path.abspath() to build mpd_path
Fixes a bug that occurs when runing "build.py" from inside the "win32" directory.
Diffstat (limited to 'win32')
-rwxr-xr-xwin32/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/build.py b/win32/build.py
index c1a423fbc..28b92c9c1 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])) or '.'
+mpd_path = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]) or '.', '..'))
# output directories
lib_path = os.path.abspath('lib')