osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Zipapp can't find sqlite db



> 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