=== modified file 'kicad/project_template.cpp'
--- kicad/project_template.cpp	2012-10-15 17:55:04 +0000
+++ kicad/project_template.cpp	2012-12-28 22:24:35 +0000
@@ -139,7 +139,13 @@
             destname += wxT(".") + destination.GetExt();
 
         wxString destpath = destination.GetPathWithSep();
-        destpath.Replace( destination.GetPathWithSep(), aNewProjectPath.GetPathWithSep() );
+        destpath.Replace( templateBasePath.GetPathWithSep(), aNewProjectPath.GetPathWithSep() );
+
+        // Check to see if the path already exists, if not attempt to create it here. Don't worry
+        // about error checking, if the path isn't created the file copy will fail anyway
+
+        if( !wxFileName::DirExists( destpath ) )
+            wxFileName::Mkdir( destpath, 0777, wxPATH_MKDIR_FULL );
 
         destination = destpath + destname;
         dstFiles.push_back( destination );

