Skip to content

Commit 7e64a22

Browse files
authored
Fix Windows compatibility: use pathlib.Path.home() instead of HOME env var (#468)
1 parent 12c97fb commit 7e64a22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • samples/python/hosted-agents/bring-your-own/invocations/github-copilot

samples/python/hosted-agents/bring-your-own/invocations/github-copilot/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def _ensure_session():
9797
"(BYOK Foundry model)")
9898
await _client.start()
9999

100-
working_dir = os.environ.get("HOME", "/home")
100+
working_dir = str(pathlib.Path.home())
101101

102102
common = dict(
103103
on_permission_request=PermissionHandler.approve_all,

0 commit comments

Comments
 (0)