How can i set Preferences (.epf) file in Python Batch Execution? (KnimePy Library)

Hi team,

I’m trying to run a workflow via batch execution with Python library “Knime”

My code is:

import knime
knime.executable_path = r"C:\Knime\knime.exe"
with knime.Workflow(r"C:\Workspace\WorkflowTest") as wf:

The workflow can not run because internally has conections to multiple DBs. In the windows batch execution (.bat) it can be solved setting the argument -preferences = “path_to_.epf_file”. inside the .bat file.

There is any way to set the .epf file path in Python Batch execution?