mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 08:17:49 -06:00
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:
parent
7e9dd50258
commit
ef7b224abc
1 changed files with 1 additions and 2 deletions
|
@ -28,7 +28,6 @@ from PyQt5.QtGui import QColor
|
||||||
import os.path
|
import os.path
|
||||||
import numpy
|
import numpy
|
||||||
numpy.seterr(all='ignore')
|
numpy.seterr(all='ignore')
|
||||||
import copy
|
|
||||||
|
|
||||||
class PrinterApplication(QtApplication):
|
class PrinterApplication(QtApplication):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -95,7 +94,7 @@ class PrinterApplication(QtApplication):
|
||||||
|
|
||||||
self.showSplashMessage('Loading interface...')
|
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.initializeEngine()
|
||||||
|
|
||||||
self.getStorageDevice('LocalFileStorage').removableDrivesChanged.connect(self._removableDrivesChanged)
|
self.getStorageDevice('LocalFileStorage').removableDrivesChanged.connect(self._removableDrivesChanged)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue