source: NEMO/trunk/doc/tools/ @ 11004

Last change on this file since 11004 was 11004, checked in by nicolasmartin, 2 years ago

Review of main building script

  • Exportig Python package checking to external script for sharing it with the verification of deps for the user guide (sphinx, extension and theme)
  • Renaming to explicit
  • Addition of basic checking for LaTeX installation (latexmk binary)
  • Implementation of loop and argument reading in order to use the same script for the 3 manuals
  • Improvment of code commentary
File size: 182 bytes
[11004]1#!/usr/bin/env python
3import sys, importlib
5for argv in sys.argv[1:]:
6   try:
7      importlib.import_module(argv)
8   except ImportError:
9      print("Package %s is missing in Python" % argv)
Note: See TracBrowser for help on using the repository browser.