diff options
author | crupest <crupest@outlook.com> | 2022-11-27 10:20:04 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-27 10:20:04 +0800 |
commit | f89940d64166a3c9b227436a29d739ec86023e5d (patch) | |
tree | f23dde87846b3425db55c932c2ae8048b3909ece /tool/aio.py | |
parent | b78932a473e12d5072437014b0a0edfaaf1bf323 (diff) | |
download | crupest-f89940d64166a3c9b227436a29d739ec86023e5d.tar.gz crupest-f89940d64166a3c9b227436a29d739ec86023e5d.tar.bz2 crupest-f89940d64166a3c9b227436a29d739ec86023e5d.zip |
Remind user to pip install first.
Diffstat (limited to 'tool/aio.py')
-rwxr-xr-x | tool/aio.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tool/aio.py b/tool/aio.py index 0abf581..86141c4 100755 --- a/tool/aio.py +++ b/tool/aio.py @@ -1,5 +1,12 @@ #!/usr/bin/env python3 +try: + import rich + import jsonschema +except ImportError: + print("Some necessary modules can't be imported. Please run `pip install -r requirements.txt` to install them.") + exit(1) + import datetime import os import os.path |