# othewise force a shell
if not SCons.Util.is_List(command): kw['shell'] = True
# run constructed command
- #FUTURE p = SCons.Action._subproc(self, command, **kw)
+ #TODO(1.5) p = SCons.Action._subproc(self, command, **kw)
p = apply(SCons.Action._subproc, (self, command), kw)
out,err = p.communicate()
status = p.wait()
e = self.fs.Dir(os.path.join('d', 'empty'))
s = self.fs.Dir(os.path.join('d', 'sub'))
+ #TODO(1.5) files = d.get_contents().split('\n')
files = string.split(d.get_contents(), '\n')
assert e.get_contents() == '', e.get_contents()
if include[0] == 'includegraphics':
base, ext = os.path.splitext( filename )
if ext == "":
- #FUTURE return [filename + e for e in self.graphics_extensions]
+ #TODO(1.5) return [filename + e for e in self.graphics_extensions]
return map(lambda e, f=filename: f+e, self.graphics_extensions)
return [filename]
env.PrependENVPath(var, abspath)
try:
if SCons.Util.is_List(env[var]):
- #FUTURE env.PrependENVPath(var, [os.path.abspath(str(p)) for p in env[var]])
+ #TODO(1.5) env.PrependENVPath(var, [os.path.abspath(str(p)) for p in env[var]])
env.PrependENVPath(var, map(lambda p: os.path.abspath(str(p)), env[var]))
else:
# Split at os.pathsep to convert into absolute path
- #FUTURE env.PrependENVPath(var, [os.path.abspath(p) for p in str(env[var]).split(os.pathsep)])
+ #TODO(1.5) env.PrependENVPath(var, [os.path.abspath(p) for p in str(env[var]).split(os.pathsep)])
env.PrependENVPath(var, map(lambda p: os.path.abspath(p), str(env[var]).split(os.pathsep)))
except KeyError:
pass