chiark / gitweb /
Fix the default example path, and add support for version file in frozen build.
[cura.git] / Cura / util / profile.py
index 869dd4ebc4df41aa225f8fa355f4496bf3810854..f27227a6bebec53e929784090127d6950a3e795b 100644 (file)
@@ -150,7 +150,7 @@ G92 E0
 }
 preferencesDefaultSettings = {
        'startMode': 'Simple',
-       'lastFile': os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'example', 'UltimakerRobot_support.stl')),
+       'lastFile': os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'resources', 'example', 'UltimakerRobot_support.stl')),
        'machine_width': '205',
        'machine_depth': '205',
        'machine_height': '200',
@@ -397,7 +397,7 @@ def calculateEdgeWidth():
        if wallThickness < nozzleSize:
                return wallThickness
 
-       lineCount = int(wallThickness / nozzleSize)
+       lineCount = int(wallThickness / nozzleSize + 0.0001)
        lineWidth = wallThickness / lineCount
        lineWidthAlt = wallThickness / (lineCount + 1)
        if lineWidth > nozzleSize * 1.5: