def makePicAlbum(path):
myFile = "PicAlbum.html"
longName = os.path.join(path, myFile)
f = open(longName, "wt")
f.write("
PicAlbum")
f.write("")
images = getImgRecurse(path)
imgTable = genImgTable(images)
for rows in imgTable:
f.write("")
for img in rows:
f.write("| "+img+" | ")
f.write("
")
f.write("
0:
image = imgList[0]
if len(aRow) == 5:
rows.append(aRow)
aRow = []
aRow.append(image)
imgList.remove(image)
rows.append(aRow)
return rows