admin管理员组

文章数量:1123341

I have a python script, let's say test.py. The script as some parameters and I have to call it like this:

python3 test.py -a 12345 read-data

The output will be something like that:

2025-01-03 14:00:55,214 bla bla bla
2025-01-03 14:00:55,214 ABCDEFG

My questions:

  1. How can I execute the script with its parameters in Delphi (see call above)?
  2. How can I get the result and the output from the call?

I tried Python4Delphi and could initialize everything, but I didn't succeed. I tried the ExecString Method.

I would appreciate any help.

Regards

Daniel

本文标签: Executing python script with parameters in DelphiStack Overflow