File: conf.py

package info (click to toggle)
lazr.config 3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 360 kB
  • sloc: python: 930; makefile: 7
file content (16 lines) | stat: -rw-r--r-- 646 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Work around difficulties with pre-PEP-420 namespace packages: the .pth
# files from build-dependencies are loaded during site initialization,
# adding the system "lazr" package directory to sys.path, but we want to
# ensure that subpackages of lazr can be imported both from our
# build-dependencies and from this package while running tests.
#
# This file allows "sphinx-build -c debian" to import lazr.config.

import os.path

import lazr

top = os.path.dirname(os.path.dirname(__file__))
lazr.__path__[:0] = [os.path.join(top, "src", "lazr")]
with open(os.path.join(top, "src", "lazr", "config", "docs", "conf.py")) as f:
    exec(f.read())