mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 17:38:04 +08:00
refactor(sandbox): update DifyCliLocator path resolution and enhance sandbox provider configuration logic
This commit is contained in:
@ -36,7 +36,7 @@ class DifyCliLocator:
|
||||
elif dify_config.SANDBOX_DIFY_CLI_ROOT:
|
||||
self._root = Path(dify_config.SANDBOX_DIFY_CLI_ROOT)
|
||||
else:
|
||||
api_root = Path(__file__).resolve().parents[2]
|
||||
api_root = Path(__file__).resolve().parents[3]
|
||||
self._root = api_root / "bin"
|
||||
|
||||
def resolve(self, operating_system: OperatingSystem, arch: Arch) -> DifyCliBinary:
|
||||
|
||||
Reference in New Issue
Block a user