Browse Source

Fix imports, especially not using plugins folder as module

When running from source, 'import plugins' works since it's working from the directory where the plug-ins directory is located. However in a build this doesn't work since the source code is in a different location there.
Ghostkeeper 2 years ago
parent
commit
de8a58f0d7
1 changed files with 5 additions and 4 deletions
  1. 5 4
      plugins/Marketplace/InstallMissingPackagesDialog.py

+ 5 - 4
plugins/Marketplace/InstallMissingPackagesDialog.py

@@ -1,16 +1,17 @@
+# Copyright (c) 2022 Ultimaker B.V.
+# Cura is released under the terms of the LGPLv3 or higher.
+
 import os
 
-from PyQt6.QtCore import QObject, pyqtSignal, pyqtProperty, QUrl
-from PyQt6.QtGui import QDesktopServices
+from PyQt6.QtCore import QObject, pyqtSignal, pyqtProperty
 from typing import Optional, List, Dict, cast, Callable
 from cura.CuraApplication import CuraApplication
 from UM.PluginRegistry import PluginRegistry
 from cura.CuraPackageManager import CuraPackageManager
-from UM.Message import Message
 from UM.i18n import i18nCatalog
 
 from UM.FlameProfiler import pyqtSlot
-from plugins.Marketplace.MissingPackageList import MissingPackageList
+from .MissingPackageList import MissingPackageList
 
 i18n_catalog = i18nCatalog("cura")