mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-18 15:48:04 +02:00
add local.sh Windows compatability
This commit is contained in:
@@ -55,7 +55,7 @@ def resolve_context_paths(context_paths: List[ContextPath]) -> str:
|
||||
continue
|
||||
if cp_type == "file" and os.path.isfile(path):
|
||||
try:
|
||||
with open(path, "r", errors="replace") as f:
|
||||
with open(path, "r", encoding="utf-8", errors="replace") as f:
|
||||
content: str = f.read(MAX_FILE_READ_BYTES)
|
||||
sections.append(
|
||||
f'<context_file path="{path}">\n{content}\n</context_file>'
|
||||
|
||||
Reference in New Issue
Block a user