hi
in my prefect flow running on prefect cloud am setting the current directory as the directory where my prefect flow available , but the other python modules which is called from the prefect flow is in different directory , this is actually throwing error when called from prefect cloud , error says that particular python module not found since it is another directory
if I copy my prefect flow file to the pth where python modules available then no error
so is there anyway I can keep my python modules in one folder and flow in different folder
k
Kevin Kho
02/24/2022, 3:13 PM
You can if using a LocalAgent. Are you using a container based agent?
s
shijas km
02/24/2022, 3:14 PM
local agent only
k
Kevin Kho
02/24/2022, 3:14 PM
You can check the last example here to specify a working dir
s
shijas km
02/24/2022, 3:14 PM
so I am setting the path where flow exist as current directory
shijas km
02/24/2022, 3:15 PM
LocalRun(workingDir=“”)
k
Kevin Kho
02/24/2022, 3:18 PM
You can set the working directory to the module directory right?
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.