Almost every Python project eventually needs a config. Everyone starts with a simple JSON or YAML — that's the normal thing to do. But once the app grows and goes to production, configs start fighting ...
python main.py --cfg configs/main.yaml device 1 Thanks to your code, I think configs should be changed to config because the folder name is config.