From 0e3cb2dba5d55c080b8e1c46a8846f18a0aa61c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 30 Nov 2023 13:51:36 +0100 Subject: [PATCH] feat(configs): add assert for SQUISH_DIR env var MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- configs/testpath.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/testpath.py b/configs/testpath.py index 28a5833..ada3f98 100644 --- a/configs/testpath.py +++ b/configs/testpath.py @@ -21,7 +21,9 @@ TEST_FILES: SystemPath = ROOT / 'ext' / 'test_files' TEST_USER_DATA: SystemPath = ROOT / 'ext' / 'user_data' # Driver Directories -SQUISH_DIR = SystemPath(os.getenv('SQUISH_DIR')) +SQUISH_DIR_RAW = os.getenv('SQUISH_DIR') +assert SQUISH_DIR_RAW is not None +SQUISH_DIR = SystemPath(SQUISH_DIR_RAW) # Status Application STATUS_DATA: SystemPath = RUN / 'status'