From 03af99954e821aeee01ca6ffb1588c1c1d7fd95a Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 27 Nov 2022 10:20:04 +0800 Subject: Remind user to pip install first. --- tool/aio.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3