Zipapp can't find sqlite db

Barry Scott barry at barrys-emacs.org
Sat Dec 7 06:05:42 EST 2019



> On 7 Dec 2019, at 10:07, dieter <dieter at handshake.de> wrote:
> 
> 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.


zipapp is part of the python standard library.

The docs only talk about packaging pure python code, not data files.

Barry



More information about the Python-list mailing list