[svn r566] Some fixes on the autotools.
6 ext = ['mpg', 'avi', 'mp4', 'nuv', 'mpeg', 'mov']
9 return time.strftime("%Y-%m-%d %H:%M:%S");
12 logging.log(logging.DEBUG, msg)
13 new_msg = "[%s] %s" % (now(), msg)
17 bin_path_list = os.environ["PATH"].split(os.pathsep)
19 for d in bin_path_list:
20 path = os.path.join(d, prg)
21 if os.path.exists(path):
23 if st[stat.ST_MODE] & 0111:
27 def list_media_files(directory, file_list):
28 for root, dirs, files in os.walk(directory):
30 if os.path.splitext(name)[1].strip(".") in ext:
31 media = os.path.join(root,name)
32 if media not in file_list:
33 file_list.append(os.path.join(root,name))