When the application is running "frozen" (py2exe, py2app) use a different base path for certain parts of the application. As all the python code is compressed into a zip file.

This commit is contained in:
daid 2015-04-03 15:10:30 +02:00
parent 7e9dd50258
commit ef7b224abc

View file

@ -28,7 +28,6 @@ from PyQt5.QtGui import QColor
import os.path
import numpy
numpy.seterr(all='ignore')
import copy
class PrinterApplication(QtApplication):
def __init__(self):
@ -95,7 +94,7 @@ class PrinterApplication(QtApplication):
self.showSplashMessage('Loading interface...')
self.setMainQml(os.path.dirname(__file__) + "/qml/Printer.qml")
self.setMainQml(os.path.dirname(__file__), "qml/Printer.qml")
self.initializeEngine()
self.getStorageDevice('LocalFileStorage').removableDrivesChanged.connect(self._removableDrivesChanged)