+ 3
What is the problem? Whenever i run the the code the music file starts getting played before the previous one ends.
from wx import LaunchDefaultApplication as play from os import listdir as get dirs=['c://','d://','e://'] def scan(dir): for x in get(dir): if '.' in x: if '.mp3' in x or '.mp4' in x or '.wav' in x: play(dir+x) else: scan(dir+x+'//') for d in dirs: scan(d)
3 Answers