mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 15:37:27 -06:00
Don't hardcode plugin directory
Contributes to CL-1274
This commit is contained in:
parent
cac8c85489
commit
a1e0ddd9df
4 changed files with 13 additions and 10 deletions
|
@ -23,6 +23,7 @@ from PyQt5.QtCore import QTimer, QUrl
|
|||
from PyQt5.QtWidgets import QMessageBox
|
||||
|
||||
from .LegacyUM3PrinterOutputController import LegacyUM3PrinterOutputController
|
||||
from .UM3OutputDevicePlugin import UM3OutputDevicePlugin
|
||||
|
||||
from time import time
|
||||
|
||||
|
@ -78,8 +79,8 @@ class LegacyUM3OutputDevice(NetworkedPrinterOutputDevice):
|
|||
self.setIconName("print")
|
||||
|
||||
self._monitor_view_qml_path = os.path.join(
|
||||
PluginRegistry.getPluginDirectory(),
|
||||
"UM3NetworkPrinting", "resources", "qml", "MonitorItem.qml"
|
||||
PluginRegistry.getInstance().getPluginPath(UM3OutputDevicePlugin().getPluginId()),
|
||||
"resources", "qml", "MonitorStage.qml"
|
||||
)
|
||||
|
||||
self._output_controller = LegacyUM3PrinterOutputController(self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue