From bc38a2736d4bda98bdef8c6195a1f17ffdec6f18 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 23 Nov 2013 10:58:19 +0100 Subject: build: make sure cwd is in Python's sys.path Apparently some packaging systems (homebrew does this for example) change `sys.path` before they run any Python script to ensure that only the correct Python modules can be loadable. We need to make sure cwd is in `sys.path` since we need to load `wscript_build.py` from there. --- wscript | 1 + 1 file changed, 1 insertion(+) diff --git a/wscript b/wscript index 05f3bcadcb..dd46d0c513 100644 --- a/wscript +++ b/wscript @@ -2,6 +2,7 @@ import sys, os, re sys.path.insert(0, os.path.join(os.getcwd(), 'waftools')) +sys.path.insert(0, os.getcwd()) from waflib.Configure import conf from waflib import Utils from waftools.checks.generic import * -- cgit v1.2.3