Source

SCons / test / CVS.py

Diff from to

test/CVS.py

     for src in source:
         f.write(open(src, "rb").read())
     f.close()
-env = Environment(ENV = { 'PATH' : os.environ['PATH'] },
+env = Environment(ENV = { 'PATH' : os.environ['PATH'],
+                          'EDITOR' : os.environ.get('EDITOR', 'ed') },
                   BUILDERS={'Cat':Builder(action=cat)})
 env.Prepend(CVSFLAGS='-Q')
 env.Cat('aaa.out', 'foo/aaa.in')
     for src in source:
         f.write(open(src, "rb").read())
     f.close()
-env = Environment(ENV = { 'PATH' : os.environ['PATH'] },
+env = Environment(ENV = { 'PATH' : os.environ['PATH'],
+                          'EDITOR' : os.environ.get('EDITOR', 'ed') },
                   BUILDERS={'Cat':Builder(action=cat)})
 env.Prepend(CVSFLAGS='-q')
 env.Cat('aaa.out', 'aaa.in')
     for src in source:
         f.write(open(src, "rb").read())
     f.close()
-env = Environment(ENV = { 'PATH' : os.environ['PATH'] },
+env = Environment(ENV = { 'PATH' : os.environ['PATH'],
+                          'EDITOR' : os.environ.get('EDITOR', 'ed') },
                   BUILDERS={'Cat':Builder(action=cat)},
                   CVSROOT=r'%s')
 env.Prepend(CVSFLAGS='-q')