Use pickle module for store project settings
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 1 Apr 2009 16:08:55 +0000 (16:08 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 1 Apr 2009 16:08:55 +0000 (16:08 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2459 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 584edd0d919b8e7784e4f4f141813a595b071fd7..ef49467b9b18b2e3801cb31b5cca43ec46beb5b3 100644 (file)
@@ -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"