PySide PyInstaller Packaging

when using pyinstaller to package the pyside application with sqlite dependency, it doesn’t copy sqldrivers to destination folder (qt4_plugins). When run the application, I will get error message complaining about SQLite driver is not found.

I need copy them to qt4_plugins directory from Qt directory

My solution is wrting a separate script to copy the sqldrivers files to executable directory after packaging.

But there should be a better method by configuring PyInstaller?