Le Fri, 14 Sep 2007 12:52:52 -0700, James Stroud a écrit:
[...]
> Other than that your strip() is stripping off some whitespace that is
> part of the name, I really can't see the problem either, but did you try
> to add in the explicit path? E.g.:
actually, the problem was in "while i <= len(li
rémi wrote:
> Hi,
>
> I would like to rename files (jpg's ones) using a text file containing the
> new names...
> Below is the code that doesn't work :
> *
> #!/usr/bin/python
> #-*- coding: utf-8 -*-
> from os import listdir, getcwd, rename
> import re
> list_names=['new_name1','new_name2']
>
Hi,
I would like to rename files (jpg's ones) using a text file containing the
new names...
Below is the code that doesn't work :
*
#!/usr/bin/python
#-*- coding: utf-8 -*-
from os import listdir, getcwd, rename
import re
list_names=['new_name1','new_name2']
list_files = listdir(getcwd())
filt