File: sphinx-ext

package info (click to toggle)
nipy 0.5.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,436 kB
  • sloc: python: 45,923; ansic: 30,932; makefile: 252; sh: 93
file content (22 lines) | stat: -rw-r--r-- 729 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
Forwarded: https://github.com/nipy/nipy/pull/485
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -16,6 +16,7 @@
 from importlib import import_module
 
 import sphinx
+import sphinx.ext.doctest
 
 # Doc generation depends on being able to import project
 project = 'nipy'
--- a/nipy/tests/scriptrunner.py
+++ b/nipy/tests/scriptrunner.py
@@ -146,6 +146,8 @@
                 env['PYTHONPATH'] = self.local_module_dir
             else:
                 env['PYTHONPATH'] = self.local_module_dir + pathsep + pypath
+        if self.debug_print:
+            print(f"PYTHONPATH: {env['PYTHONPATH']}")
         proc = Popen(cmd, stdout=PIPE, stderr=PIPE, env=env)
         stdout, stderr = proc.communicate()
         if proc.poll() is None: