Commits

Eric Pavey committed 5730018

Modified timelapse.py

Comments (0)

Files changed (1)

pi_camera/timelapse.py

     movieFrames = int(movieDuration) * int(framerate)
     interval = float(captureTimeSec) / movieFrames
     totalPics = int(captureTimeSec / interval)
-    print "Time-lapse begin! : Take a picture every %s seconds, for %s hours.  That's %s pictures"%(interval, captureTime, totalPics)
     timelapseDir = "time-lapse"
     if not os.path.isdir(timelapseDir):
         os.mkdir(timelapseDir)
         
+    print "Time-lapse begin! : Take a picture every %s seconds, for %s hours.  That's %s pictures!"%(interval, captureTime, totalPics)
+
     if startTime:
         now = datetime.datetime.now()
         print "Will start recording on:", startTime