I have been told that doing this would be a not-very-good practice:
SOUNDENABLED = 1
FILEPATH = \'D:\\\\TEMP\\\\hello.txt\'
It could be better for some reasons
py.__init__.py into this directoryFor example, the YouCompleteMe autocompletion engine stores config in python module, .ycm_extra_conf.py. By default, each time config is imported, it asks you, whether you sure that the file is safe to be executed.
Generally, allowing execution of code that came from somewhere outside is a vulnerability, that could lead to very serious consequences.
However, if you don't care about these, for example, you are developing web application that executes only on your server, this is an acceptable practice to put configuration into python module. Django does so.