From cc70c5c67df6cf80bf8066b5d5150f0d3b0c882a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 26 Jan 2015 20:59:57 +0100 Subject: [PATCH] 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. --- win32/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')