profile.loadPreferences(profile.getPreferencePath())
if options.profile is not None:
- profile.loadProfileFromString(options.profile)
+ profile.setProfileFromString(options.profile)
elif options.profileini is not None:
profile.loadProfile(options.profileini)
else:
scene.add(m)
slicer.runSlicer(scene)
slicer.wait()
+ profile.replaceGCodeTagsFromSlicer(slicer.getGCodeFilename(), slicer)
if options.output:
shutil.copyfile(slicer.getGCodeFilename(), options.output)