Nice, these are useful tools. I have been building something with just
basic stuff and avoiding learning any libraries. If I wanted to get
some insight on a larger program that is about 1000 lines, would that
be doable here?

On Thu, Jul 31, 2014 at 7:37 PM, Peter Otten <__pete...@web.de> wrote:
> C Smith wrote:
>
> I'd throw in a check to verify that filename is indeed a flac:
>
>> or more accurately
>> import os, subprocess, re
>> directory = '/abs/path'
>> for track, filename in enumerate(os.listdir(directory), 1):
>>     pathname = os.path.join(directory, filename)
>       if filename.endswith(".flac"):
>           subprocess.call(['ffmpeg', '-i', pathname, filename[:-5]+'.mp3'])
>
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to