mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 04:19:03 +08:00
CURA-5296 Better finding for packages.json
This commit is contained in:
parent
757824ae93
commit
dd14a8e685
@ -151,7 +151,9 @@ class CuraApplication(QtApplication):
|
||||
|
||||
Resources.addSearchPath(os.path.join(QtApplication.getInstallPrefix(), "share", "cura", "resources"))
|
||||
if not hasattr(sys, "frozen"):
|
||||
Resources.addSearchPath(os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "resources"))
|
||||
resource_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "resources")
|
||||
Resources.addSearchPath(resource_path)
|
||||
Resources.setBundledResourcesPath(resource_path)
|
||||
|
||||
self._use_gui = True
|
||||
self._open_file_queue = [] # Files to open when plug-ins are loaded.
|
||||
|
@ -30,9 +30,7 @@ class CuraPackageManager(QObject):
|
||||
|
||||
# JSON file that keeps track of all installed packages.
|
||||
self._bundled_package_management_file_path = os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
"..",
|
||||
"resources",
|
||||
os.path.abspath(Resources.getBundledResourcesPath()),
|
||||
"packages.json"
|
||||
)
|
||||
self._user_package_management_file_path = os.path.join(
|
||||
|
Loading…
x
Reference in New Issue
Block a user