chiark / gitweb /
Allow for odd shaped platforms and generalize the UM2 clip code into no-go zones.
[cura.git] / Cura / cura.py
index a475705b28b610cfd2eedf6f5b8a74c0a6fc1f42..701b93e64a07834705a376e8064308475f21e3fd 100644 (file)
@@ -11,8 +11,6 @@ __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AG
 
 from optparse import OptionParser
 
-from Cura.util import resources
-resources.setupLocalization()  # it's important to set up localization at very beginning to install _
 from Cura.util import profile
 
 def main():
@@ -32,7 +30,7 @@ def main():
 
        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:
@@ -56,6 +54,7 @@ def main():
                        scene.add(m)
                slicer.runSlicer(scene)
                slicer.wait()
+               profile.replaceGCodeTagsFromSlicer(slicer.getGCodeFilename(), slicer)
 
                if options.output:
                        shutil.copyfile(slicer.getGCodeFilename(), options.output)