mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-21 05:09:37 +08:00
15 lines
716 B
Python
15 lines
716 B
Python
# Copyright (c) 2018 Ultimaker B.V.
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
from cura.CuraApplication import CuraApplication #To find some resource types.
|
|
from UM.PackageManager import PackageManager #The class we're extending.
|
|
from UM.Resources import Resources #To find storage paths for some resource types.
|
|
|
|
|
|
class CuraPackageManager(PackageManager):
|
|
def __init__(self, parent = None):
|
|
super().__init__(parent)
|
|
|
|
self._installation_dirs_dict["materials"] = Resources.getStoragePath(CuraApplication.ResourceTypes.MaterialInstanceContainer)
|
|
self._installation_dirs_dict["qualities"] = Resources.getStoragePath(CuraApplication.ResourceTypes.QualityInstanceContainer)
|