Search code examples
pythonsqlitepyqt5pyinstallerexecutable

Python PyQt5 executable app wont update the sqlite db when closing the app


I have created an desktop app with Python and PyQt5 and sqlite database then create an .exe with Pyinstaller.

The app work completly fine and the database tables updates succefuly, but when closing the app and reopen the .exe file looks like the database tables empty.

any answers please.


Solution

  • Yes. thanks musicamante I was binding my sqlite database like the other resources (src files) --add-data="database\db.db;database" but when i added it like an external resource to the executable file, it work perfectlly.