I create a python package. The configuration should be placed in /etc/myapp if installed globally or in ~/.myapp if installed for user only (pip install myapp --user).
I can do the first point with this in the setup.py file: data_files = [("/etc/myapp", ['application.properties'])
But how can I place this file in ~/.myapp if installed for user only?