Coverage for src/pythia/__main__.py: 50%

8 statements  

« prev     ^ index     » next       coverage.py v6.4.4, created at 2022-10-07 19:27 +0000

1"""Module allowing for `python -m pythia ...`.""" 

2 

3 

4import sys 

5 

6try: 

7 from pythia.cli.app import app 

8except ImportError: 

9 print( 

10 "pythia must be installed with its cli extra to run this script." 

11 "please install pythia[cli] and try again." 

12 ) 

13 sys.exit(1) 

14 

15if __name__ == "__main__": 15 ↛ 16line 15 didn't jump to line 16, because the condition on line 15 was never true

16 sys.exit(app())