canfestival/canfestival.py
changeset 1063 9b5995303db1
parent 1061 02f371f3e063
child 1279 0eb9f8af479f
--- a/canfestival/canfestival.py	Wed Apr 24 17:37:46 2013 +0200
+++ b/canfestival/canfestival.py	Wed Apr 24 18:50:37 2013 +0200
@@ -380,8 +380,9 @@
         
     def OnCTNSave(self, from_project_path=None):
         self.SetRoot(self.CTNPath())
-        shutil.copytree(self.GetEDSFolder(from_project_path), 
-                        self.GetEDSFolder())
+        if from_project_path is not None:
+            shutil.copytree(self.GetEDSFolder(from_project_path), 
+                            self.GetEDSFolder())
         return self.SaveProject() is None
 
     def CTNGenerate_C(self, buildpath, locations):