diff --git a/pdf2htmlEX/test/produceHtmlForBrowserTests b/pdf2htmlEX/test/produceHtmlForBrowserTests
index 2fdce82..6225aab 100755
--- a/pdf2htmlEX/test/produceHtmlForBrowserTests
+++ b/pdf2htmlEX/test/produceHtmlForBrowserTests
@@ -69,6 +69,10 @@ if test -z "$PDF2HTMLEX_PREDIR" ; then
export PDF2HTMLEX_PREDIR=/tmp/pdf2htmlEX/pre
fi
+if test -z "$PDF2HTMLEX_TEST_DIR" ; then
+ export PDF2HTMLEX_TEST_DIR=.
+fi
+
# clear out the TMPDIR
#
rm -rf $PDF2HTMLEX_TMPDIR