1- copy python folder to folder project
2- creat function python
function python(file)
Execute = CommandLine.Execute("Python27\\python.exe "..file, 0);
return Execute
end
--replace Python27 to name folder python
3- creat in folder project file python Example
python.py
4- result = python("python.py")
Example
strCommand ="python.py"
if (strCommand ~= "CANCEL") then
tblResult = CommandLine.Execute("python.lnk python.py", 0);
if (tblResult ~= nil ) then
Input.SetText("Input1", tblResult.StdOut);
else
Dialog.Message("Error", "Failed To Execute python command..", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end
end
2- creat function python
function python(file)
Execute = CommandLine.Execute("Python27\\python.exe "..file, 0);
return Execute
end
--replace Python27 to name folder python
3- creat in folder project file python Example
python.py
4- result = python("python.py")
Example
strCommand ="python.py"
if (strCommand ~= "CANCEL") then
tblResult = CommandLine.Execute("python.lnk python.py", 0);
if (tblResult ~= nil ) then
Input.SetText("Input1", tblResult.StdOut);
else
Dialog.Message("Error", "Failed To Execute python command..", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end
end