import os
import os.path
import zipfile

print( "* Running cw4_checkout.py *") 

def make_cw4_zip_file():
    if not os.path.isfile("lights_off.html"):
        print( "!!! Did not find file lights_off.html !!!" )
        return
        
    print( "* Making CW4 submission file lights_off.zip ...\n")
    with zipfile.ZipFile( 'lights_off.zip', mode='w' ) as zipf:
         zipf.write("lights_off.html")
    print( "* Created lights_off.zip *")
    print( "* This is the file you should submit via Minerva")

make_cw4_zip_file()

