diff --git a/config.py b/config.py index e063038..6d29f5e 100644 --- a/config.py +++ b/config.py @@ -28,12 +28,12 @@ if ENVIRONMENT == 'dev': SUPPORTING_DIR = os.path.join(BASE_DIR, 'supporting') else: # Production environment - use absolute paths - BASE_DIR = '/opt/QC' - PROFILES_DIR = '/opt/QC/profiles' - CHECKS_DIR = '/opt/QC/checks' + BASE_DIR = '/opt/hm_qc' + PROFILES_DIR = '/opt/hm_qc/profiles' + CHECKS_DIR = '/opt/hm_qc/checks' WORKING_DIR = '/tmp/HM_working' - REPORTS_DIR = '/opt/QC/reports' - SUPPORTING_DIR = '/opt/QC/supporting' + REPORTS_DIR = '/opt/hm_qc/reports' + SUPPORTING_DIR = '/opt/hm_qc/supporting' # Profile paths PDF_PROFILE_PATH = os.path.join(PROFILES_DIR, 'HM.json') diff --git a/qc_module.py b/qc_module.py index edbc033..8dcdb79 100755 --- a/qc_module.py +++ b/qc_module.py @@ -5,12 +5,9 @@ import datetime from typing import Dict, Any, Optional, List import logging +import config from checks.html_reporter import HTMLReporter -# Add this near the top with other constants -REPORTS_DIR = os.path.join(os.path.dirname(__file__), "reports") # Or your preferred path -os.makedirs(REPORTS_DIR, exist_ok=True) # Create directory if needed - def run_single_check(script: str, config: Dict[str, Any], context: Dict[str, Any], check_id: str) -> Dict[str, Any]: """ Import and run a single QC check module with context support. diff --git a/requirements.txt b/requirements.txt index b76f1e7..c480b86 100755 --- a/requirements.txt +++ b/requirements.txt @@ -8,6 +8,7 @@ APScheduler==3.11.0 asyncer==0.0.8 attrs==24.3.0 backoff==2.2.1 +boxsdk==3.9.2 cachetools==5.5.1 certifi==2024.12.14 cffi==1.17.1 @@ -72,6 +73,7 @@ packaging==24.2 pandas==2.2.3 pillow==11.1.0 propcache==0.2.1 +psd-tools==1.9.34 pyarrow==19.0.0 pycparser==2.22 pydantic==2.10.5