Answer the question
In order to leave comments, you need to log in
Where to put the data files of a python project?
Hello.
There is a project, a side effect of the work, which are various .txt files, a database and the like. In the course of work, they will somehow change.
To be honest, I don't know where to put them. Specifying an absolute path to them is not an option, and besides, I would not like to clutter up user space and put everything directly in the HOME folder.
I didn’t come up with anything better than just throwing it into the installation folder along with the project itself - as it is. But it did not work, because setuptools refuses to take them with it during installation.
Maybe someone will tell you where it is better to put such things, or where ready-made projects put their configs.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question