summaryrefslogtreecommitdiffstats
path: root/test/PDFTEXFLAGS.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/PDFTEXFLAGS.py
parentdbb26a739bda888c1b7e206dbf6753ebadc68ebc (diff)
downloadSCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.zip
SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.gz
SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.bz2
Portability fixes for test. (Chad Austin)
Diffstat (limited to 'test/PDFTEXFLAGS.py')
-rw-r--r--test/PDFTEXFLAGS.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/PDFTEXFLAGS.py b/test/PDFTEXFLAGS.py
index fe1f5fc..fb1fbf0 100644
--- a/test/PDFTEXFLAGS.py
+++ b/test/PDFTEXFLAGS.py
@@ -81,9 +81,11 @@ os.system(string.join(sys.argv[1:], " "))
""" % string.replace(test.workpath('wrapper.out'), '\\', '\\\\'))
test.write('SConstruct', """
-foo = Environment(PDFTEXFLAGS = '--output-comment Commentary')
+import os
+ENV = { 'PATH' : os.environ['PATH'] }
+foo = Environment(ENV = ENV, PDFTEXFLAGS = '--output-comment Commentary')
pdftex = foo.Dictionary('PDFTEX')
-bar = Environment(PDFTEX = r'%s wrapper.py ' + pdftex)
+bar = Environment(ENV = ENV, PDFTEX = r'%s wrapper.py ' + pdftex)
foo.PDF(target = 'foo.pdf', source = 'foo.tex')
bar.PDF(target = 'bar', source = 'bar.tex')
""" % python)