Well, if you refer to my thread where I mentioned that I had a screen capture of the output.. I want it to look like that.. <br><br>now it yells at me for everything that doens't match and does match. =D<br><br>I dont think this test is working though, because using your suggested method.
<br><br>Fail! SL_39.sdr flashupdt.cfg<br>Fail! SL_39.sdr flashupdt_da.cfg<br>Fail! SL_39.sdr MASTER.CFG<br>Fail! SL_39.sdr MASTER_da.CFG
<br>Fail! SL_39.sdr PSL_MBD5.FRU<br>Fail! SL_39.sdr P_R24BP.FRU<br>Fail! SL_39.sdr P_R24BPE.FRU<br>Fail! SL_39.sdr P_R26BP.FRU
<br>Fail! SL_39.sdr P_R26BPE.FRU<br>Fail! SL_39.sdr R0066.Cap<br>Fail! SL_39.sdr R24BP202.hex<br>Fail! SL_39.sdr R26BP202.hex
<br>Fail! SL_39.sdr RA_MBD4.FRU<br>Fail! SL_39.sdr SLBMC55.hex<br><span style="font-weight: bold;">Fail! SL_39.sdr SL_39.SDR</span><br>Fail! SL_39.sdr S_R24BP.FRU
<br>Fail! SL_39.sdr S_R24BPE.FRU<br>Fail! SL_39.sdr S_R26BP.FRU<br>Fail! SL_39.sdr S_R26BPE.FRU<br>Fail! SL_39.sdr XSL_MBD3.FRU
<br>Fail! SL_39.sdr XVN_MBD3.FRU<br><br>Ok, I dont want it to rename SL_39.sdr for each of those fails... just the one where I bolded.. this worked with my loop method, but the 3rd columns output wasn't correct.
<br><br>Loop = works<br>Display = wrong<br><br><br><div><span class="gmail_quote">On 10/18/06, <b class="gmail_sendername">Luke Paireepinart</b> <<a href="mailto:rabidpoobear@gmail.com">rabidpoobear@gmail.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Chris Hengge wrote:<br>> Yes, I tried what you suggested, I've changed my looping structure to
<br>> this:<br>><br>> count = 0<br>> for itemLine in lineList:<br>> for itemDirectory in directoryList:<br>> if itemLine == itemDirectory:<br>> print match.ljust
(20) + itemLine.ljust(20) +<br>> itemDirectory.ljust(20)<br>> else:<br>> print fail.ljust(20) + itemLine.ljust(20) +<br>> itemDirectory.ljust(20)<br>> #os.rename(pathName + item, pathName + LineList[count])
<br>> count = count + 1<br>><br>> I'm just trying to figure out where to put the break(s), but I need to<br>> verify this is working since I'll be using it to rename files.. my old<br>> structure did EXACTLY what I wanted (I replied to my original post
<br>> with more details and screen captures) as far as renaming the files..<br>> but the display was screwed up.<br><br>under what conditions do you want to break?<br></blockquote></div><br>