Skip to content

Commit

Permalink
Compatibility with Slic3r 1.3.0: preset names are now saved without e…
Browse files Browse the repository at this point in the history
…xtension

slic3r/Slic3r#3813
  • Loading branch information
alranel committed May 1, 2017
1 parent 27584de commit 6f33cb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions printrun/pronterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2222,6 +2222,9 @@ def readline(self):
def set_slic3r_config(self, configfile, cat, file):
"""Set new preset for a given category"""
self.slic3r_configs[cat] = file
# Starting from Slic3r 1.3.0, preset names have no extension
if not os.path.isfile(self.slic3r_configs[cat]) && os.path.isfile(self.slic3r_configs[cat] + ".ini")
self.slic3r_configs[cat] += ".ini"
if self.settings.slic3rupdate:
config = self.read_slic3r_config(configfile)
config.set("presets", cat, os.path.basename(file))
Expand Down

0 comments on commit 6f33cb7

Please sign in to comment.