knimepy icon indicating copy to clipboard operation
knimepy copied to clipboard

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

Open nithinth7 opened this issue 4 years ago • 2 comments

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

nithinth7 avatar Oct 12 '20 15:10 nithinth7

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().

applio avatar Oct 12 '20 15:10 applio

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

ryanwng12 avatar Dec 22 '20 15:12 ryanwng12