summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-11-23 10:58:19 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-11-23 10:58:19 +0100
commitbc38a2736d4bda98bdef8c6195a1f17ffdec6f18 (patch)
tree2b932c077de6c6531c6209cdcab09185274514ec
parent1748928e45124ffc50b6b4587c5e490f90b426f3 (diff)
downloadmpv-bc38a2736d4bda98bdef8c6195a1f17ffdec6f18.tar.bz2
mpv-bc38a2736d4bda98bdef8c6195a1f17ffdec6f18.tar.xz
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.
-rw-r--r--wscript1
1 files changed, 1 insertions, 0 deletions
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 *