What is the problem? Whenever i run the the code the music file starts getting played before the previous one ends. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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)

13th Nov 2017, 12:52 PM
Prabhakar Dev
Prabhakar Dev - avatar
0 Answers