Skip to content

Commit 153286b

Browse files
committed
fix: Add Python path setup to security_audit.py for CI environment
1 parent c8e8425 commit 153286b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/security_audit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
import os
77
import sys
88

9+
# Add project root to Python path for CI environment
10+
PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
11+
if PROJECT_ROOT not in sys.path:
12+
sys.path.insert(0, PROJECT_ROOT)
13+
914
# Setup Django
1015
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tests.settings')
1116

0 commit comments

Comments
 (0)