From 4b70a014699bc724697a20d6abb1e78be00d1e29 Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 19 Apr 2010 08:41:57 +0000 Subject: [PATCH] Add preset loading function. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3449 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BProject.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wizard/BProject.py b/wizard/BProject.py index 866d5be9..5ecf7f22 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -117,10 +117,8 @@ class BProject(object): setEnabledModules(self, project_data["ENABLED_MODULES"]) def loadProjectPresets(self, preset_directory): - # This method will save: - # "CPU_NAME" - # ... - pass + preset_prj_file = os.path.join(preset_directory, 'project.bertos') + preset_data = pickle.loads(open(preset_prj_file, "r").read()) def loadModuleData(self, edit=False): module_info_dict = {} -- 2.25.1