Change the parameter name
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Jan 2009 11:55:05 +0000 (11:55 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Jan 2009 11:55:05 +0000 (11:55 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2235 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 52d8acea59240d509949a1d550d20334158f0f5a..eeb762d8d8f2f1e91ccf5f883ac29c50c1678f0b 100644 (file)
@@ -23,7 +23,7 @@ def isBertosDir(directory):
 def bertosVersion(directory):
    return open(directory + "/VERSION").readline().strip()
 
-def createBertosProject(directory, sources_dir, projectInfos):
+def createBertosProject(directory, sourcesDir, projectInfos):
     if not os.path.isdir(directory):
         os.mkdir(directory)
     f = open(directory + "/project.bertos", "w")
@@ -32,12 +32,12 @@ def createBertosProject(directory, sources_dir, projectInfos):
     ## Destination source dir
     srcdir = directory + "/bertos"
     shutil.rmtree(srcdir, True)
-    shutil.copytree(sources_dir + "/bertos", srcdir)
+    shutil.copytree(sourcesDir + "/bertos", srcdir)
     ## Destination makefile
     makefile = directory + "/Makefile"
     if os.path.exists(makefile):
         os.remove(makefile)
-    shutil.copy(sources_dir + "/Makefile", makefile)
+    shutil.copy(sourcesDir + "/Makefile", makefile)
     ## Destination project dir
     prjdir = directory + "/" + os.path.basename(directory)
     shutil.rmtree(prjdir, True)