Created
November 27, 2011 20:58
Open all mp3s in all subfolders of ./muzak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os; | |
for subdir, dirs, files in os.walk('./muzak'): | |
for file in files: | |
if (file[-4:] == '.mp3'): | |
os.system('open ".' + subdir[1:] + '/' + file + '"') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment