From: Youness Alaoui Date: Tue, 13 Jan 2015 22:47:44 +0000 (-0500) Subject: Add a overridePostProcessPluginConfig API X-Git-Tag: lulzbot-15.02.1-1.01~75^2~4^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=39718d868f5117454ca6894e6877ee4aad132c2f;p=cura.git Add a overridePostProcessPluginConfig API This is to allow temporary override of plugin configurations for simple mode settings for example. To use it, just call overridePostProcessPluginConfig(config) and provide a configuration list for the plugins (print the one given to the setPostProcessPluginconfig function and reuse it in your simple config) This should put us one step forward with regards to issue #59 --- diff --git a/Cura/util/pluginInfo.py b/Cura/util/pluginInfo.py index 54fe7252..5f80a5f1 100644 --- a/Cura/util/pluginInfo.py +++ b/Cura/util/pluginInfo.py @@ -79,6 +79,9 @@ def getPostProcessPluginConfig(): def setPostProcessPluginConfig(config): profile.putProfileSetting('plugin_config', pickle.dumps(config)) +def overridePostProcessPluginConfig(config): + profile.setTempOverride('plugin_config', pickle.dumps(config)) + def getPluginBasePaths(): ret = [] if platform.system() != "Windows":