I have a config file with the following contents.
[Default]file_list = ['dataset1/*.wav', 'dataset2/*.wav', 'dataset3/*.wav', 'dataset4/*.wav']
which is a line break that most of the time works in Python. I parse it with this
import configargparsep = configargparse.ArgParser()p.add('-c', '--my-config', required=True, is_config_file=True, help='config file path')p.add('--file_list', action="append", required=False, help='path to genome file')args = p.parse_args()
by making the appropriate call
python file.py --my-config=config.ini
The problem is (not surprisingly):
file.py: error: unrecognized arguments: --'dataset4/*.wav'] true
I assume this happens because it expects a new arg in the config file. I also tried different line continuation methods.
How can I input multiple line lists using configargparse? If I can't, what is a minimal alternative solution to config file list inputs?