summaryrefslogtreecommitdiffstats
path: root/test/TEXFLAGS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-04-26 13:02:02 (GMT)
committerSteven Knight <knight@baldmt.com>2003-04-26 13:02:02 (GMT)
commita925fbfbbecd978b6275ba0592e3bd21b0bd7781 (patch)
tree292853eb221ebe82c9e9b47c03c74b78a155add0 /test/TEXFLAGS.py
parentdbb26a739bda888c1b7e206dbf6753ebadc68ebc (diff)
downloadSCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.zip
SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.gz
SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.bz2
Portability fixes for test. (Chad Austin)
Diffstat (limited to 'test/TEXFLAGS.py')
-rw-r--r--test/TEXFLAGS.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/TEXFLAGS.py b/test/TEXFLAGS.py
index c171217..fa5edb6 100644
--- a/test/TEXFLAGS.py
+++ b/test/TEXFLAGS.py
@@ -81,9 +81,11 @@ os.system(string.join(sys.argv[1:], " "))
""" % string.replace(test.workpath('wrapper.out'), '\\', '\\\\'))
test.write('SConstruct', """
-foo = Environment(TEXFLAGS = '--output-comment Commentary')
+import os
+ENV = { 'PATH' : os.environ['PATH'] }
+foo = Environment(ENV = ENV, TEXFLAGS = '--output-comment Commentary')
tex = foo.Dictionary('TEX')
-bar = Environment(TEX = r'%s wrapper.py ' + tex)
+bar = Environment(ENV = ENV, TEX = r'%s wrapper.py ' + tex)
foo.DVI(target = 'foo.dvi', source = 'foo.tex')
bar.DVI(target = 'bar', source = 'bar.tex')
""" % python)