diff options
Diffstat (limited to 'test/PDFLATEX.py')
| -rw-r--r-- | test/PDFLATEX.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/test/PDFLATEX.py b/test/PDFLATEX.py index a64f158..f665d0f 100644 --- a/test/PDFLATEX.py +++ b/test/PDFLATEX.py @@ -32,11 +32,6 @@ import TestSCons python = sys.executable -if sys.platform == 'win32': - _exe = '.exe' -else: - _exe = '' - test = TestSCons.TestSCons() @@ -75,12 +70,7 @@ test.fail_test(not os.path.exists(test.workpath('test2.pdf'))) -pdflatex = None -for dir in string.split(os.environ['PATH'], os.pathsep): - l = os.path.join(dir, 'pdflatex' + _exe) - if os.path.exists(l): - pdflatex = l - break +pdflatex = test.where_is('pdflatex') if pdflatex: |
