diff options
author | wm4 <wm4@nowhere> | 2015-06-04 11:10:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-04 11:10:02 +0200 |
commit | 73401f92ec84ffc04ec4d08bf0e0905824144e2f (patch) | |
tree | 014490da448590ae541bd2f9fbd5686ff92e0363 /bootstrap.py | |
parent | 38c74270c3cc4e57ae2d68333845fa84e76bf457 (diff) | |
download | mpv-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.
Diffstat (limited to 'bootstrap.py')
-rwxr-xr-x | bootstrap.py | 2 |
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) |