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 | 03af99954e821aeee01ca6ffb1588c1c1d7fd95a (patch) | |
tree | f23dde87846b3425db55c932c2ae8048b3909ece /tool | |
parent | f5145424826d034908e36acfc5036342c5f8d22b (diff) | |
download | crupest-03af99954e821aeee01ca6ffb1588c1c1d7fd95a.tar.gz crupest-03af99954e821aeee01ca6ffb1588c1c1d7fd95a.tar.bz2 crupest-03af99954e821aeee01ca6ffb1588c1c1d7fd95a.zip |
Remind user to pip install first.
Diffstat (limited to 'tool')
-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 |