Description: Monkey patch location of Veusz data files while running self-test.
 We monkey patch Veusz to make it look for its data file locations in the
 build directory. This is required because we change the data file locations in
 datafiles-usr-share.patch to be in /usr/share.
Author: Jeremy Sanders <jeremy@jeremysanders.net>
Forwarded: not-needed
Last-Update: 2011-11-25
--- veusz-1.14.orig/tests/runselftest.py
+++ veusz-1.14/tests/runselftest.py
@@ -41,6 +41,11 @@
 import os.path
 import sys
 
+import veusz.utils
+datadir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')
+veusz.utils.veuszDirectory = veusz.utils.utilfuncs.veuszDirectory = datadir
+veusz.utils.action.imagedir = os.path.join(datadir, 'windows', 'icons')
+
 import veusz.qtall as qt4
 import veusz.utils.textrender
 import veusz.document as document
