File: Do-not-modify-sys-path-in-sphinx-config.patch

package info (click to toggle)
python-atom 0.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,676 kB
  • sloc: cpp: 9,254; python: 6,181; makefile: 123
file content (22 lines) | stat: -rw-r--r-- 735 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Subject: Do not modify sys.path in sphinx config
Author: Alexander Sulfrian <alexander@sulfrian.net>
Forwarded: not-needed

We want to set PYTHONPATH in debian/rules to the correct pybuild build
directory. If this path is modified afterwards, the correct modules cannot be
found by sphinx autodoc.

Index: python-atom/docs/source/conf.py
===================================================================
--- python-atom.orig/docs/source/conf.py
+++ python-atom/docs/source/conf.py
@@ -15,9 +15,6 @@
 import os
 import sys
 
-sys.path.insert(0, os.path.abspath("."))
-sys.path.insert(0, os.path.abspath("../"))
-
 from atom.version import version_info
 
 # -- Project information -----------------------------------------------------