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