summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-09-17 06:44:04 (GMT)
committerDavid Cournapeau <cournape@gmail.com>2009-09-17 06:44:04 (GMT)
commit956dc672657e9363f47caf55b8379229f9ef47c6 (patch)
treee47658bb7f966257cb5d77fe8573d3dbed1f7bd3 /src
parent22ff7d9058e799c6d27b8e84644451a5ff2c9d6a (diff)
downloadSCons-956dc672657e9363f47caf55b8379229f9ef47c6.zip
SCons-956dc672657e9363f47caf55b8379229f9ef47c6.tar.gz
SCons-956dc672657e9363f47caf55b8379229f9ef47c6.tar.bz2
BUG: fix TryRun with variant dir set.
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/SConf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/SConf.py b/src/engine/SCons/SConf.py
index 4bf2d1c..313630b 100644
--- a/src/engine/SCons/SConf.py
+++ b/src/engine/SCons/SConf.py
@@ -625,8 +625,8 @@ class SConfBase:
ok = self.TryLink(text, extension)
if( ok ):
prog = self.lastTarget
- pname = str(prog)
- output = SConfFS.File(pname+'.out')
+ pname = prog.path
+ output = self.confdir.File(os.path.basename(pname)+'.out')
node = self.env.Command(output, prog, [ [ pname, ">", "${TARGET}"] ])
ok = self.BuildNodes(node)
if ok: