[ui] main: remove hacks due to a faulty PySide2 installation

This commit is contained in:
Yann Lanthony 2017-10-06 15:50:28 +02:00
parent 07dd8f6bb3
commit 4d265a08e2

View file

@ -1,4 +1,3 @@
import PySide2
import os
import sys
@ -7,9 +6,6 @@ from PySide2.QtQml import QQmlApplicationEngine
from meshroom.ui.reconstruction import Reconstruction
# TODO: remove this
pysideDir = os.path.dirname(PySide2.__file__)
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = pysideDir + '/plugins/platforms'
if __name__ == "__main__":
@ -20,7 +16,6 @@ if __name__ == "__main__":
r = Reconstruction()
engine.rootContext().setContextProperty("_reconstruction", r)
engine.addImportPath(pysideDir + "/qml/") # TODO: remove this
engine.load(os.path.normpath(url))
app.exec_()