- filelist.append("<VirtualDirectory Name=\"%s\">" %os.path.basename(directory))
+ # Do not create an empty VDir.
+ # TODO: this is *really* ugly, but an empty VDir is worse
+ if directory:
+ filelist.append("<VirtualDirectory Name=\"%s\">" %os.path.basename(directory))
for f in file_dict[directory]["files"]:
filelist.append("<File Name=\"%s\"/>" %os.path.join(directory, f))
for d in file_dict[directory]["dirs"]:
filelist += clFiles(file_dict, os.path.join(directory, d))
for f in file_dict[directory]["files"]:
filelist.append("<File Name=\"%s\"/>" %os.path.join(directory, f))
for d in file_dict[directory]["dirs"]:
filelist += clFiles(file_dict, os.path.join(directory, d))
if root.find("svn") == -1:
file_dict[root.replace(path, "")] = {"dirs": [], "files": []}
for dir in dirs:
if root.find("svn") == -1:
file_dict[root.replace(path, "")] = {"dirs": [], "files": []}
for dir in dirs:
while template.find("$filelist") != -1:
template = template.replace("$filelist", filelist)
project_name = os.path.basename(project_info.info("PROJECT_PATH"))
while template.find("$project") != -1:
template = template.replace("$project", project_name)
while template.find("$filelist") != -1:
template = template.replace("$filelist", filelist)
project_name = os.path.basename(project_info.info("PROJECT_PATH"))
while template.find("$project") != -1:
template = template.replace("$project", project_name)
+ while template.find("$debuggerpath") != -1:
+ template = template.replace("$debuggerpath", debugger_path)
+ while template.find("$initscript") != -1:
+ template = template.replace("$initscript", init_script)
project_name = os.path.basename(project_info.info("PROJECT_PATH"))
while template.find("$project") != -1:
template = template.replace("$project", project_name)
project_name = os.path.basename(project_info.info("PROJECT_PATH"))
while template.find("$project") != -1:
template = template.replace("$project", project_name)