Make app pyinstaller compatible