<div dir="ltr"><div>Hi;</div><div>I have this code:</div><div> </div><div>#!/Python27/python</div><div>import os, subprocess, sys<br></div><div>lyrics_path = "/Users/Tom/Documents/lyrics"<br>os.chdir(lyrics_path)</div>
<div> </div><div>songs = ['livin-la-vida-loca', 'whos-that-lady']<br>for song in songs:<br> subprocess.call(['notepad.exe', '%s.txt' % song])<br></div><div>my_songs_path = "aa english lyrics"<br>
os.chdir(my_songs_path)</div><div>for song in my_songs:<br> subprocess.call(['notepad.exe', '%s.txt' % song])<br> print song</div><div> </div><div>It opens the first song and hangs on subsequent songs. It doesn't open the next song or execute the print until I have closed the first one. I want it to open all in the list, one after another, so I have all those songs available. Please advise.</div>
<div>TIA,</div><div>Tom</div></div>