From ef7b224abc004eede4ded043294846273d334de1 Mon Sep 17 00:00:00 2001 From: daid Date: Fri, 3 Apr 2015 15:10:30 +0200 Subject: [PATCH] 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. --- PrinterApplication.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PrinterApplication.py b/PrinterApplication.py index 6cfc41bd68..7589c4763c 100644 --- a/PrinterApplication.py +++ b/PrinterApplication.py @@ -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)