| 1 | # Work around difficulties with pre-PEP-420 namespace packages: the .pth |
| 2 | # files from build-dependencies are loaded during site initialization, |
| 3 | # adding the system "lazr" package directory to sys.path, but we want to |
| 4 | # ensure that subpackages of lazr can be imported both from our |
| 5 | # build-dependencies and from this package while running tests. |
| 6 | # |
| 7 | # This file allows "sphinx-build -c debian" to import lazr.config. |
| 8 | |
| 9 | import os.path |
| 10 | |
| 11 | import lazr |
| 12 | |
| 13 | top = os.path.dirname(os.path.dirname(__file__)) |
| 14 | lazr.__path__[:0] = [os.path.join(top, "src", "lazr")] |
| 15 | with open(os.path.join(top, "src", "lazr", "config", "docs", "conf.py")) as f: |
| 16 | exec(f.read()) |