From: derpeter Date: Tue, 12 Oct 2010 11:54:17 +0000 (+0000) Subject: changed behaivior of scons after switching to local sons version. X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=b98db834b584f9d9c85c16b4a818c7f9f326b9c7;p=senf.git changed behaivior of scons after switching to local sons version. git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1733 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/site_scons/site_init.py b/site_scons/site_init.py index 9c2baac..0121a24 100644 --- a/site_scons/site_init.py +++ b/site_scons/site_init.py @@ -1,5 +1,6 @@ import os.path, SCons import inspect +import sys # SCons is at #/tools/scons-/engine/SCons/__init__.py # site_init is at #/site_scons/site_init.py @@ -48,4 +49,5 @@ if os.path.dirname(os.path.dirname(os.path.abspath(SCons.__file__))) != sconseng elif cdir != '.' and not cdir.startswith('/'): os.chdir('/'.join(('..' for _ in cdir.split('/')))) os.environ['SCONS_LIB_DIR'] = sconsengine - os.execv(sconsscript, sys.argv) + os.execv(sys.executable, [sconsscript] + sys.argv) +