-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug_paths.py
More file actions
30 lines (24 loc) · 864 Bytes
/
debug_paths.py
File metadata and controls
30 lines (24 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python
"""Debug script to check model paths"""
import sys
import os
# Add src folder to path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
print("=" * 60)
print("DEBUG: Path Resolution")
print("=" * 60)
# Simulate what happens in model_ensemble.py
src_dir = os.path.dirname(os.path.abspath(os.path.join(os.path.dirname(__file__), 'src')))
print(f"src_dir would be: {src_dir}")
# This is what the code will calculate
models_dir_parent = os.path.dirname(src_dir)
models_dir = os.path.join(models_dir_parent, 'models')
print(f"models_dir would be: {models_dir}")
# Check if it exists and what's in it
if os.path.exists(models_dir):
print(f"✓ Models directory exists")
files = os.listdir(models_dir)
print(f" Files in directory: {files}")
else:
print(f"✗ Models directory does not exist")
print("=" * 60)