From 935bda129dddd5bec7975daba9ae3d2f1c7645be Mon Sep 17 00:00:00 2001
From: Martyn Gigg <martyn.gigg@stfc.ac.uk>
Date: Fri, 13 Jun 2014 11:05:56 +0100
Subject: [PATCH] Enable sphinx to be run without MantidPlot.

Refs #9639
---
 Code/Mantid/docs/runsphinx.py.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Code/Mantid/docs/runsphinx.py.in b/Code/Mantid/docs/runsphinx.py.in
index fe2d50b7a84..bb6a822e80b 100644
--- a/Code/Mantid/docs/runsphinx.py.in
+++ b/Code/Mantid/docs/runsphinx.py.in
@@ -6,6 +6,9 @@ import os
 import sys
 
 def main():
+    # Update path to find mantid
+    sys.path.insert(0, "@CMAKE_LIBRARY_OUTPUT_DIRECTORY@")
+
     # Update environment with screenshots path
     screenshots_dir = "@SCREENSHOTS_DIR@"
     if screenshots_dir != "":
-- 
GitLab