Skip to content

Commit 5f28eb5

Browse files
fix: fix _enable_sandbox variable.
1 parent d549882 commit 5f28eb5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/application/flow/backend/sandbox_shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from maxkb.const import CONFIG
99

10-
_enable_sandbox = bool(CONFIG.get('SANDBOX', 0))
10+
_enable_sandbox = bool(init(CONFIG.get('SANDBOX', 0)))
1111
_run_user = 'sandbox' if _enable_sandbox else getpass.getuser()
1212
_sandbox_python_sys_path = CONFIG.get_sandbox_python_package_paths().replace(',', ':')
1313

apps/common/utils/tool_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from maxkb.const import BASE_DIR, CONFIG
2424
from maxkb.const import PROJECT_DIR
2525

26-
_enable_sandbox = bool(CONFIG.get('SANDBOX', 0))
26+
_enable_sandbox = bool(int(CONFIG.get('SANDBOX', 0)))
2727
_run_user = 'sandbox' if _enable_sandbox else getpass.getuser()
2828
_sandbox_path = CONFIG.get("SANDBOX_HOME", '/opt/maxkb-app/sandbox') if _enable_sandbox else os.path.join(PROJECT_DIR,
2929
'data',

0 commit comments

Comments
 (0)