From: duplo Date: Wed, 1 Apr 2009 16:08:55 +0000 (+0000) Subject: Use pickle module for store project settings X-Git-Tag: 2.1.0~223 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=16a27180c57cd37089c5e4078fd36940eb849db3;p=bertos.git Use pickle module for store project settings git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2459 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 584edd0d..ef49467b 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -14,6 +14,7 @@ import fnmatch import glob import re import shutil +import pickle import const import codelite_project @@ -31,7 +32,7 @@ def createBertosProject(project_info): if not os.path.isdir(directory): os.mkdir(directory) f = open(directory + "/project.bertos", "w") - f.write(repr(project_info)) + f.write(pickle.dumps(project_info)) f.close() ## Destination source dir srcdir = directory + "/bertos"