BUG: fix TryRun with variant dir set.
authorcournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 17 Sep 2009 06:44:04 +0000 (06:44 +0000)
committercournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 17 Sep 2009 06:44:04 +0000 (06:44 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4364 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/SConf.py

index 4bf2d1c17b69db0d95ea92b934afcaffb3ad5378..313630b6a0697c93754572b68a38e1470d08ce58 100644 (file)
@@ -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: