mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-08 13:12:08 +00:00
fix(desktop): default HERMES_DESKTOP_CWD to cwd when --cwd omitted
Salvaged from #40363; re-verified on main, tightened, tested. Co-authored-by: alex-heritier <alex-heritier@users.noreply.github.com>
This commit is contained in:
parent
077419b220
commit
5431bf2921
1 changed files with 2 additions and 0 deletions
|
|
@ -5598,6 +5598,8 @@ def cmd_gui(args: argparse.Namespace):
|
|||
env["HERMES_DESKTOP_HERMES_ROOT"] = str(Path(args.hermes_root).expanduser().resolve())
|
||||
if getattr(args, "cwd", None):
|
||||
env["HERMES_DESKTOP_CWD"] = str(Path(args.cwd).expanduser().resolve())
|
||||
else:
|
||||
env["HERMES_DESKTOP_CWD"] = os.getcwd()
|
||||
|
||||
# Desktop launch options from config.yaml (`desktop.electron_flags`,
|
||||
# `desktop.disable_gpu`). The GPU policy is bridged to the env var the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue