Skip to content

Problem with relative directories for input items

The script chains.py contains the following call:

cfg.items_list = list_audio(
        cfg.input_path, absolute=True, select_list=getattr(cfg, "input_select", None)
    )

When relative directory is specified in the CONFIG.yml file such as e.g.

### REQUIRED: Input path or file
input_path: "./items_HOA"
### REQUIRED: Output path or file
output_path: "./tmp_output"

the script fails with the following error message:

FileNotFoundError: [Errno 2] No such file or directory: 'items_HOA/items_HOA/eigen_O3_ACN_SN3D_Diag1_1_norm_HOA3.wav'

I guess the problem might be due to absolute=True.