From: lottaviano Date: Tue, 12 Apr 2011 05:15:25 +0000 (+0000) Subject: wizard: use a reliable order for enabled modules in the project file X-Git-Tag: 2.7.0~110 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;ds=sidebyside;h=15b829c39d2878facdfbab8d12482f803e136dd3;p=bertos.git wizard: use a reliable order for enabled modules in the project file This should minimize the diff in the project file when enabling/disabling a module in a BeRTOS project stored inside a VCS. Signed-off-by: Nicolas Dandrimont git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4856 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index feb5c987..7be67fe1 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -118,7 +118,7 @@ def projectFileGenerator(project_info): for module, information in project_info.info("MODULES").items(): if information["enabled"]: enabled_modules.append(module) - project_data["ENABLED_MODULES"] = enabled_modules + project_data["ENABLED_MODULES"] = sorted(enabled_modules) if project_info.info("PRESET"): # For presets save again the BERTOS_PATH into project file project_data["PRESET"] = True