All pastes #431994 Raw Edit

Mine

public python v1 · immutable
·published 2007-04-10 00:13 UTC
rendered paste body
import osdef atEachDir(matchlist,dirname,fileshere):                for file in fileshere:                                        if file.endswith('.mp3'):                                                                        matchlist.append(os.path.join(dirname,file))matches=[]os.path.walk(r'/home/rlipman/music/',atEachDir,matches)for file in matches:        file=file.replace(' ','\ ')        file=file.replace('(','\(')        file=file.replace(')','\)')        file=file.replace('\'','\\\'')        os.system('mp3gain -c '+file)        #print file