Arthur Rey
02/29/2024, 8:19 AMprefect-dbt-flow
to execute dbt runs. this is the path to my dbt
c:\Users\Arthur Lagura\Documents\Arthur\FIS\FIS_Data_Migration\venv_FIS\Scripts\dbt.EXE
so when the dbt_flow executes the command, the cmd encounters an error due to the space in the folder "Arthur Lagura". how should i configure the code to fix this. below is the code i execute
from pathlib import Path
from prefect.task_runners import SequentialTaskRunner
from prefect_dbt_flow import dbt_flow
from prefect_dbt_flow.dbt import DbtProfile, DbtProject
my_dbt_flow = dbt_flow(
project=DbtProject(
name="sample_project",
project_dir=f'"{Path.cwd()}/../../.."',
profiles_dir=f'"{Path.home()}/.dbt"',
),
profile=DbtProfile(
target="dev",
),
flow_kwargs={
"task_runner": SequentialTaskRunner(),
},
)