From 8ff7bf35f5f9f124f37cc43a994fc63c556a3d27 Mon Sep 17 00:00:00 2001 From: batt Date: Fri, 30 Apr 2010 20:47:11 +0000 Subject: [PATCH] reformat. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3588 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/create_preset.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wizard/create_preset.py b/wizard/create_preset.py index 88fe9c10..5f303ff5 100644 --- a/wizard/create_preset.py +++ b/wizard/create_preset.py @@ -72,7 +72,6 @@ assert(os.path.exists(preset_dir + "/" + hw_path + "/hw")) assert(os.path.exists(preset_dir + "/" + bertos_path + "/bertos")) s["BERTOS_PATH"] = bertos_path -s["PRESET"] = True s["PROJECT_HW_PATH"] = hw_path s["PROJECT_SRC_PATH"] = "." s["PRESET"] = True @@ -80,9 +79,7 @@ pprint.pprint(s) p = open(preset_dir + "/project.bertos", "w") pickle.dump(s, p) -p = open(preset_dir + "/.spec", "w") -p.write("name = '%s preset'" % pname) -p.close() +open(preset_dir + "/.spec", "w").write("name = '%s preset'" % pname) bertos_path = os.path.abspath(preset_dir + "/" + bertos_path) hw_path = os.path.abspath(preset_dir + "/" + hw_path) -- 2.25.1