Zipapp can't find sqlite db

dieter dieter at handshake.de
Sat Dec 7 05:07:07 EST 2019


Abdur-Rahmaan Janhangeer <arj.python at gmail.com> writes:
> I'm using zipapp to include a gui + db
>
> __main__.py
> dbs/
>     file.db
>
> When packaging, the db is there. When querying through sqlalchemy, it says
> can't open db file. Help appreciated!

I am unsure what you mean with "packaging". If you mean
"create a package for PyPI management", then data files
(unlike Python source code files) need special treatment.
In this case, read the documentation for your packageing tool.



More information about the Python-list mailing list