Navigation Menu

Skip to content

Commit

Permalink
Merge pull request Ultimaker#1672 from Ultimaker/feature_CURA-3529_up…
Browse files Browse the repository at this point in the history
…grade_cura_dir

CURA-3529: Set dir names in config to allow UM detect old cura dir
  • Loading branch information
jackha committed Apr 19, 2017
2 parents 7db0f0e + f56dc3d commit 2cd3565
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cura/CuraApplication.py
Expand Up @@ -109,6 +109,10 @@ class ResourceTypes:
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"))
Expand Down

0 comments on commit 2cd3565

Please sign in to comment.