aboutsummaryrefslogtreecommitdiff
path: root/tool/aio.py
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-27 10:20:04 +0800
committercrupest <crupest@outlook.com>2022-11-27 10:20:04 +0800
commitf89940d64166a3c9b227436a29d739ec86023e5d (patch)
treef23dde87846b3425db55c932c2ae8048b3909ece /tool/aio.py
parentb78932a473e12d5072437014b0a0edfaaf1bf323 (diff)
downloadcrupest-f89940d64166a3c9b227436a29d739ec86023e5d.tar.gz
crupest-f89940d64166a3c9b227436a29d739ec86023e5d.tar.bz2
crupest-f89940d64166a3c9b227436a29d739ec86023e5d.zip
Remind user to pip install first.
Diffstat (limited to 'tool/aio.py')
-rwxr-xr-xtool/aio.py7
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