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:
|