mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 15:57:52 -06:00
Don't use __file__
Contributes to CL-1274
This commit is contained in:
parent
cf9a1c0248
commit
cac8c85489
4 changed files with 24 additions and 9 deletions
|
@ -84,8 +84,10 @@ class CloudOutputDevice(NetworkedPrinterOutputDevice):
|
|||
self._account = api_client.account
|
||||
|
||||
# We use the Cura Connect monitor tab to get most functionality right away.
|
||||
self._monitor_view_qml_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
||||
"../../resources/qml/MonitorStage.qml")
|
||||
self._monitor_view_qml_path = os.path.join(
|
||||
PluginRegistry.getPluginDirectory(),
|
||||
"UM3NetworkPrinting", "resources", "qml", "MonitorStage.qml"
|
||||
)
|
||||
|
||||
# Trigger the printersChanged signal when the private signal is triggered.
|
||||
self.printersChanged.connect(self._clusterPrintersChanged)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue