Spaces:
Paused
Paused
Update SwitcherAI/utilities.py
Browse files- SwitcherAI/utilities.py +2 -2
SwitcherAI/utilities.py
CHANGED
|
@@ -256,8 +256,8 @@ def resolve_relative_path(relative_path: str):
|
|
| 256 |
|
| 257 |
resolved_path = (base_dir / relative_path).resolve()
|
| 258 |
resolved_path.parent.mkdir(parents=True, exist_ok=True)
|
| 259 |
-
return resolved_path
|
| 260 |
except Exception:
|
| 261 |
fallback_path = Path.cwd() / relative_path
|
| 262 |
fallback_path.parent.mkdir(parents=True, exist_ok=True)
|
| 263 |
-
return fallback_path
|
|
|
|
| 256 |
|
| 257 |
resolved_path = (base_dir / relative_path).resolve()
|
| 258 |
resolved_path.parent.mkdir(parents=True, exist_ok=True)
|
| 259 |
+
return str(resolved_path)
|
| 260 |
except Exception:
|
| 261 |
fallback_path = Path.cwd() / relative_path
|
| 262 |
fallback_path.parent.mkdir(parents=True, exist_ok=True)
|
| 263 |
+
return str(fallback_path)
|