crash10155 commited on
Commit
104ba58
·
verified ·
1 Parent(s): 84ba5a8

Update SwitcherAI/utilities.py

Browse files
Files changed (1) hide show
  1. 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)