This makes summary more robust, since it doesn't rely on PIGLIT_SOURCE_DIR being set correctly in the environment.
Signed-off-by: Dylan Baker <[email protected]> --- framework/summary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/summary.py b/framework/summary.py index e5eb156..7b88c96 100644 --- a/framework/summary.py +++ b/framework/summary.py @@ -271,7 +271,8 @@ class Summary: implementation is HTML output through mako, aptly named generateHTML(). """ TEMP_DIR = path.join(tempfile.gettempdir(), "piglit/html-summary") - TEMPLATE_DIR = path.join(os.environ['PIGLIT_SOURCE_DIR'], 'templates') + TEMPLATE_DIR = path.abspath( + path.join(path.dirname(__file__), '..', 'templates')) def __init__(self, resultfiles): """ -- 2.0.0 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
