Spaces:
Sleeping
Sleeping
Gemini
commited on
Commit
·
42a79a5
1
Parent(s):
834c3b1
feat(debug): Add debug prints to config.py for path tracing
Browse files
lpm_kernel/configs/config.py
CHANGED
|
@@ -78,8 +78,11 @@ class Config:
|
|
| 78 |
for key, value in os.environ.items():
|
| 79 |
if not hasattr(instance, key.lower()): # Avoid overriding core configuration
|
| 80 |
# If it's a directory configuration, ensure using the correct base directory
|
| 81 |
-
if key.endswith("_DIR")
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
| 83 |
instance._extra_config[key] = value
|
| 84 |
|
| 85 |
# Vector store settings
|
|
|
|
| 78 |
for key, value in os.environ.items():
|
| 79 |
if not hasattr(instance, key.lower()): # Avoid overriding core configuration
|
| 80 |
# If it's a directory configuration, ensure using the correct base directory
|
| 81 |
+
if key.endswith("_DIR"):
|
| 82 |
+
print(f"DEBUG: Processing _DIR variable: {key}={value}") # DEBUG
|
| 83 |
+
if not os.path.isabs(value):
|
| 84 |
+
value = os.path.join(base_dir, value)
|
| 85 |
+
print(f"DEBUG: Joined with base_dir, new value: {value}") # DEBUG
|
| 86 |
instance._extra_config[key] = value
|
| 87 |
|
| 88 |
# Vector store settings
|