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.
This commit is contained in:
parent
ae7e1a22cb
commit
cc70c5c67d
|
@ -15,7 +15,7 @@ if configure_args[0] == '--64':
|
||||||
host_arch = 'x86_64-w64-mingw32'
|
host_arch = 'x86_64-w64-mingw32'
|
||||||
|
|
||||||
# the path to the MPD sources
|
# 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
|
# output directories
|
||||||
lib_path = os.path.abspath('lib')
|
lib_path = os.path.abspath('lib')
|
||||||
|
|
Loading…
Reference in New Issue