From ef7a036c96109620dff26478ebcc00ae7491d985 Mon Sep 17 00:00:00 2001 From: Larry Shaffer Date: Fri, 21 Feb 2014 22:40:38 -0700 Subject: [PATCH] Add svgSymbolsPath to Python unit test utilities (for defining paths without app instance) --- tests/src/python/utilities.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/src/python/utilities.py b/tests/src/python/utilities.py index c0c6612b30ae..3ca311458645 100644 --- a/tests/src/python/utilities.py +++ b/tests/src/python/utilities.py @@ -150,6 +150,11 @@ def unitTestDataPath(theSubdir=None): return myPath +def svgSymbolsPath(): + return os.path.abspath( + os.path.join(unitTestDataPath(), '..', '..', 'images', 'svg')) + + def setCanvasCrs(theEpsgId, theOtfpFlag=False): """Helper to set the crs for the CANVAS before a test is run.