Nymbo commited on
Commit
4bfe890
·
verified ·
1 Parent(s): b97b64f

Update Modules/Agent_Terminal.py

Browse files
Files changed (1) hide show
  1. Modules/Agent_Terminal.py +2 -1
Modules/Agent_Terminal.py CHANGED
@@ -97,7 +97,8 @@ def _convert_to_url_if_path(val: Any) -> Any:
97
  try:
98
  abs_path = os.path.abspath(val)
99
  # Normalize slashes
100
- return f"/file={abs_path.replace('\\', '/')}"
 
101
  except Exception:
102
  return val
103
  elif isinstance(val, (list, tuple)):
 
97
  try:
98
  abs_path = os.path.abspath(val)
99
  # Normalize slashes
100
+ normalized_path = abs_path.replace('\\', '/')
101
+ return f"/file={normalized_path}"
102
  except Exception:
103
  return val
104
  elif isinstance(val, (list, tuple)):