[Tutor] File renaming using os.rename problem (spir)

spir denis.spir at free.fr
Wed Dec 9 11:52:58 CET 2009


Roy Hinkelman <royhink at gmail.com> dixit:

> Why don't you simply print out fname? This should point you to the error.
> 
> Denis
> 
> 
> I did here:
> >         if fname == old_name:
> >             print fname # test
> 
> and it looks correct.
> 
> On an WinXP, should I use shutil instead?
> 
> Roy

Sorry Roy, I read your post too fast.

Denis
________________________________

la vita e estrany

http://spir.wikidot.com/


More information about the Tutor mailing list