get rid of hardcoded tempfile (refs #3)

This commit is contained in:
Flávio Ribeiro
2015-11-19 17:03:44 -05:00
parent 337dbbc11f
commit 6640769595

View File

@@ -21,10 +21,10 @@ Options:
from docopt import docopt
from moviepy.editor import VideoFileClip
from PIL import Image
import glob, os, random, sys, shutil, math
import glob, os, random, sys, shutil, math, tempfile
TMP_FRAMES_PATH="/tmp/frames/"
TMP_FRAMES_PATH = tempfile.mkstemp()[1]
def generate_video_thumbnail(args):
videoFileClip = VideoFileClip(args['<video>'])