summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-04 11:10:02 +0200
committerwm4 <wm4@nowhere>2015-06-04 11:10:02 +0200
commit73401f92ec84ffc04ec4d08bf0e0905824144e2f (patch)
tree014490da448590ae541bd2f9fbd5686ff92e0363
parent38c74270c3cc4e57ae2d68333845fa84e76bf457 (diff)
downloadmpv-73401f92ec84ffc04ec4d08bf0e0905824144e2f.tar.bz2
mpv-73401f92ec84ffc04ec4d08bf0e0905824144e2f.tar.xz
bootstrap.py: make it work on win32
Apparently, just running ./waf and hoping that it will be run with a Python interpreter doesn't necessarily work. The workaround is pretty simple and reliable.
-rwxr-xr-xbootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.py b/bootstrap.py
index 7ffd39a4fe..c62914cb1b 100755
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -11,7 +11,7 @@ WAFURLS = ["http://ftp.waf.io/pub/release/" + WAFRELEASE,
SHA256HASH = "f02035fa5d8814f33f19b2b20d43822ddef6bb39b955ca196c2a247a1f9ffaa8"
if os.path.exists("waf"):
- wafver = subprocess.check_output(['./waf', '--version']).decode()
+ wafver = subprocess.check_output([sys.executable, './waf', '--version']).decode()
if WAFRELEASE.split('-')[1] == wafver.split(' ')[1]:
print("Found 'waf', skipping download.")
sys.exit(0)