summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshihaoyue <[email protected]>2024-09-06 22:54:00 +0800
committershihaoyue <[email protected]>2024-09-06 22:54:00 +0800
commit71c655a700867beef492fba5089515b8daa4e6e7 (patch)
tree25f207e69edf8d463b5002204dda00a60041429f
parent39be258719e10cd58f49914091674f0a0d986cfd (diff)
bugfix python3
-rw-r--r--agent/apps/script.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/apps/script.py b/agent/apps/script.py
index 7d490f0..e437806 100644
--- a/agent/apps/script.py
+++ b/agent/apps/script.py
@@ -139,7 +139,7 @@ def execute():
# 根据脚本类型构建命令
if '.py' in script_path:
- command = f"python -u {script_path} {data.get('param')}"
+ command = f"python3 -u {script_path} {data.get('param')}"
elif '.go' in script_path:
command = f"go run {script_path} {data.get('param')}"
else: