mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-27 20:06:53 +08:00
16 lines
418 B
Python
16 lines
418 B
Python
|
|
def supress_nonlocal_image_warn():
|
|
import sphinx.environment
|
|
sphinx.environment.BuildEnvironment.warn_node = _supress_nonlocal_image_warn
|
|
|
|
def _supress_nonlocal_image_warn(self, msg, node):
|
|
from docutils.utils import get_source_line
|
|
|
|
if not msg.startswith('nonlocal image URI found:'):
|
|
self._warnfunc(msg, '%s:%s' % get_source_line(node))
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
checkDependencies()
|