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.
This commit is contained in:
Ghostkeeper 2022-06-08 09:50:44 +02:00
parent fb3f065fe0
commit de8a58f0d7
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -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")