summaryrefslogtreecommitdiff
path: root/debian/patches/0001-fix-the-build_man-target.patch
blob: 02a18996f0765ff1c774ac7dc24389ca095aa74d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: "picca@synchrotron-soleil.fr" <picca@synchrotron-soleil.fr>
Date: Wed, 2 Aug 2017 15:43:37 +0200
Subject: fix the build_man target

---
 doc/source/conf.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/doc/source/conf.py b/doc/source/conf.py
index 30abf54..44f0a3e 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -15,16 +15,12 @@ import sys
 import os
 import glob
 import subprocess
+import silx
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 # sys.path.insert(0, os.path.abspath('.'))
-dirname = os.path.dirname
-root_dir = dirname(dirname(dirname(os.path.abspath(__file__))))
-import silx
-source_dir = dirname(dirname(silx.__file__))
-os.environ["PYTHONPATH"] = source_dir + os.pathsep + os.environ.get("PYTHONPATH", "")
 
 # -- General configuration -----------------------------------------------------