Jump to content
diaroeh

Py4Delphi and Python's subprocess

Recommended Posts

Hi everybody,

 

I just have to develope some GUI for existing python script which are using python's subprocess.

 

On testing with python4delphi and TPythonGUIInputOutput it seem's that python.subprocess is

ignored and never called.

 

Any idea to run and access on subprocess-modules or is it not possible with python4delphi.

 

Thanks in advance

 

Dirk

Share this post


Link to post

TPythonGUIInputOutput only captures output sent to to sys.stdout and sys.stderr.  It will not capture the output generated by sub-processes and printed to the console.

You can capture the output of sub-processes and make it available to Delphi or print it from the script that creates the sub-processes.

 

See subprocess — Subprocess management — Python 3.9.2 documentation for details

Edited by pyscripter

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×