mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 17:38:04 +08:00
refactor(sandbox): update DIFY_CLI_PATH and DIFY_CLI_CONFIG_PATH to use SANDBOX_WORK_DIR and enhance error handling in SandboxSession
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
from typing import Final
|
||||
|
||||
SANDBOX_WORK_DIR: Final[str] = "/work"
|
||||
SANDBOX_WORK_DIR: Final[str] = "work"
|
||||
|
||||
DIFY_CLI_PATH: Final[str] = "/work/.dify/bin/dify"
|
||||
DIFY_CLI_PATH: Final[str] = f"{SANDBOX_WORK_DIR}/.dify/bin/dify"
|
||||
|
||||
DIFY_CLI_PATH_PATTERN: Final[str] = "dify-cli-{os}-{arch}"
|
||||
|
||||
DIFY_CLI_CONFIG_PATH: Final[str] = "/work/.dify_cli.json"
|
||||
DIFY_CLI_CONFIG_PATH: Final[str] = f"{SANDBOX_WORK_DIR}/.dify_cli.json"
|
||||
|
||||
Reference in New Issue
Block a user