17.run_python_program
Run the python program interface in ide:
Run the python program in ide.
Message:
json
{
"cmd": "run_python_program",
"data": {
"version":"lite6",
"user_Id":"test",
"projectName":"BlocklyToPython",
"filePath":"/test_0907.py"
},
"id": "1"
}
Request:
data | type | Required fields | Description |
---|---|---|---|
version | string | yes | Lite6 arm passes “lite6”, other types pass null |
user_Id | string | yes | Default pass test |
projectName | string | yes | The parent directory of the project |
filePath | string | yes | Path of IDE file relative to parent directory |
Respons:
code=0->Success;
code!=0->1111 indicates an execution IDE exception.