Y
Y
yahabrovec2019-06-23 16:29:16
Python
yahabrovec, 2019-06-23 16:29:16

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

1 answer(s)
S
sim3x, 2019-06-23
@sim3x

$HOME/.config/$U_APP_NAME/{data,config,etc}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question