add convert-to-mp3.py

This commit is contained in:
Josh Holtrop 2011-04-03 20:00:12 -04:00
parent e113e88e48
commit e01b650a7b

13
convert-to-mp3.py Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env python
import os
import sys
from subprocess import *
def main(argv):
for f in argv:
if os.path.isfile(f):
Popen(['lame', '-v', f, f + '.mp3']).wait()
if __name__ == "__main__":
main(sys.argv)