def record(path,rtime): #os.chdir(path) t = time.strftime("%Y_%m_%d") + time.strftime("_%H_%M_%S") c = Castro(filename = t + ".swf") c.init() c.start() print "Start recording--------" time.sleep(rtime) c.stop() return None