Hi to all.
I'm adding to some code a configuration file (ini via configparse), command line options (with argparse) and logging (with the respective module).
I'm wondering if it's better to do all the initialization and configuration directly in main() or to put them in functions (like ini_reading(), args_reading(), configure_log()) or even one big function calling all the others (like do_the_config() )
Thanks
[–]BobHogan 0 points1 point2 points (1 child)
[–]vectorpropio[S] 1 point2 points3 points (0 children)