Merge pull request #1672 from Ultimaker/feature_CURA-3529_upgrade_cura_dir

CURA-3529: Set dir names in config to allow UM detect old cura dir
This commit is contained in:
jack 2017-04-19 13:28:49 +02:00 committed by GitHub
commit 2cd3565d4b

View file

@ -109,6 +109,10 @@ class CuraApplication(QtApplication):
Q_ENUMS(ResourceTypes)
def __init__(self):
# this list of dir names will be used by UM to detect an old cura directory
for dir_name in ["extruders", "machine_instances", "materials", "plugins", "quality", "user", "variants"]:
Resources.addExpectedDirNameInData(dir_name)
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"))