knime / knimepy

Other
44 stars 14 forks source link

Use subprocess.Popen() instead of subprocess.run() #25

Open nithinth7 opened 4 years ago

nithinth7 commented 4 years ago

It would be great if there is an enhancement to knimepy by using subprocess.Popen() instead of subprocess.run() with the option to use subprocess.SW_HIDE on Windows platforms. The main advantage of this in my point of view, there won't be any additional window opening up everytime I execute KNIME from python.

Based on: https://forum.knime.com/t/execute-knime-from-python/27903/2

applio commented 4 years ago

It probably makes sense to make subprocess.SW_HIDE the default on Windows, with an option to "unhide" it. It may make more sense to expose this as an attribute on the knime.Workflow class rather than as yet another option on execute().

ryanwng12 commented 3 years ago

Hi, is there any status update regarding this enhancement? Would be looking forward for this to be included! :)