<filename>zested/main.py
#!/usr/bin/env python3
import sys

# Unused imports for pyinstaller
from PySide import QtXml

from PySide import QtGui, QtCore
from zested.gui import MainWindow
from zested import TRANS_DIR


def main():
    QtGui.QApplication.setLibraryPaths([])
    app = QtGui.QApplication(sys.argv)
    QtCore.QCoreApplication.setOrganizationName("Zested")
    QtCore.QCoreApplication.setApplicationName("ZestEd")
    translator = QtCore.QTranslator()
    translator.load("qt_fr", TRANS_DIR)
    app.installTranslator(translator)
    main_window = MainWindow()
    sys.exit(app.exec_())

if __name__ == "__main__":
    main()

<filename>zested/main.py
#!/usr/bin/env python3
import sys

# Unused imports for pyinstaller
from PySide import QtXml

from PySide import QtGui, QtCore
from zested.gui import MainWindow
from zested import TRANS_DIR


def main():
    QtGui.QApplication.setLibraryPaths([])
    app = QtGui.QApplication(sys.argv)
    QtCore.QCoreApplication.setOrganizationName("Zested")
    QtCore.QCoreApplication.setApplicationName("ZestEd")
    translator = QtCore.QTranslator()
    translator.load("qt_fr", TRANS_DIR)
    app.installTranslator(translator)
    main_window = MainWindow()
    sys.exit(app.exec_())

if __name__ == "__main__":
    main()

#!/usr/bin/env python3 # Unused imports for pyinstaller