From 73401f92ec84ffc04ec4d08bf0e0905824144e2f Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 4 Jun 2015 11:10:02 +0200 Subject: 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. --- bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstrap.py') 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) -- cgit v1.2.3