Updated config base path
This commit is contained in:
parent
1242af363f
commit
c1ca8a0141
3 changed files with 8 additions and 9 deletions
10
config.py
10
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')
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue