Config file with a .py file
问题 I have been told that doing this would be a not-very-good practice: configfile.py SOUNDENABLED = 1 FILEPATH = 'D:\\TEMP\\hello.txt' main.py import configfile if configfile.SOUNDENABLED == 1: .... f = open(configfile.FILEPATH, 'a') ... This is confirmed by the fact that many people use INI files for local configuration with ConfigParser module or iniparse or other similar modules. Question: Why would using an INI file for local configuration + an INI parser Python module be better than just