Welcome to CS1315. Click on the python to add comments.
This page removed for FERPA compliance
meanhw
import os
def linkspage(directory):
samplesfile=open(directory + "//index.html","wt")
samplesfile.write(doctype())
samplesfile.write(title("Samples from" + directory))
#Now, let's makeup the string that will be the body
samples = "
Samples from" + directory + "
\n"
for file in os.listdir(directory):
if file.endswith(".jpg"):
img = makePicture(directory + "/" + file)
newWidth=getWidth(img)/2
newHeight= getHeight(img)/2
samples = samples + "