Coverage for deeponnxcustom/__main__.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v6.4.1, created at 2022-06-06 02:28 +0200

1# pylint: disable=C0415 

2""" 

3@file 

4@brief Implements command line ``python -m deeponnxcustom <command> <args>``. 

5""" 

6 

7 

8def main(args, fLOG=print): 

9 """ 

10 Implements ``python -m onnxcustom <command> <args>``. 

11 

12 :param args: command line arguments 

13 :param fLOG: logging function 

14 """ 

15 from pyquickhelper.cli import cli_main_helper 

16 try: 

17 from . import check 

18 except ImportError: # pragma: no cover 

19 from onnxcustom import check 

20 

21 fcts = dict(check=check) 

22 return cli_main_helper(fcts, args=args, fLOG=fLOG) 

23 

24 

25if __name__ == "__main__": 

26 import sys # pragma: no cover 

27 main(sys.argv[1:]) # pragma: no cover