Using this general structure:
setup.py /package __init__.py project.py /data client.log
I have a script that saves a list of names in client.log , so I donโt need to reinitialize this list every time I need to access it or launch a module. Before setting up this structure with pkg_resources , I used open('.../data/client.log', 'w') to update the log with explicit paths, but this no longer works.
Is there a way to edit data files inside modules? Or is there a better way to keep this list?
source share