Good times learning Python!
Posted: Wed May 16, 2007 7:53 pm
I would like to start a thread that tells about the hours of time you spend trying to figure out why your python app doesnt work at all. To start the thread off, here is what I did last night. I am writing an app that will convert mythtv videos to dvd, and burn it. So in this app I need to run some system commands. I used the function called popen3('command') which works for a command that will be executed right away and you dont have to worry about it. Well the commands I was using stuff like dvdauthor, mkisofs and mpeg2desc, all take time. So I run the script and it finishes right away but my iso has 0 bytes in it, I reran the app again, same thing, I did this about 5 more times and all of a sudden my system became real slow.........I did a ctrl+alt+f1 went to console and did 'ps -a' and found that there were a ton of instances of the apps I was running in my script running......Which leads me here, I cant believe I used a function that would not check to see if a command was finished before moving on to the rest of the app!
Ohh well live and learn I guess. I would love to hear if anyone else has any stories like this, it may help me feel better
Ohh well live and learn I guess. I would love to hear if anyone else has any stories like this, it may help me feel better