Okidi Norbert commited on
Commit ·
380e126
1
Parent(s): 941c3ad
Fix: resolve _BACKEND_ROOT NameError in pipeline
Browse files
personal_analysis/pipeline.py
CHANGED
|
@@ -41,7 +41,7 @@ def _resolve_model_path(path: str) -> str:
|
|
| 41 |
return path
|
| 42 |
|
| 43 |
# Anchor to the backend root (parent of 'personal_analysis/')
|
| 44 |
-
|
| 45 |
candidate = os.path.abspath(os.path.join(_BACKEND_ROOT, path))
|
| 46 |
|
| 47 |
if os.path.exists(candidate):
|
|
|
|
| 41 |
return path
|
| 42 |
|
| 43 |
# Anchor to the backend root (parent of 'personal_analysis/')
|
| 44 |
+
_BACKEND_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
| 45 |
candidate = os.path.abspath(os.path.join(_BACKEND_ROOT, path))
|
| 46 |
|
| 47 |
if os.path.exists(candidate):
|