Changing filenames from Greeklish => Greek (subprocess complain)

Lele Gaifax lele at metapensiero.it
Thu Jun 6 17:07:37 EDT 2013


Νικόλαος Κούρας <nikos.gr33k at gmail.com> writes:

> Tahnks here is what i have up until now with many corrections.

I'm afraid many more are needed :-)

> ...
> 		# rename filename form greek bytestreams --> utf-8 bytestreams
> 		old_path = b'/home/nikos/public_html/data/apps/' + b'filename')
> 		new_path = b'/home/nikos/public_html/data/apps/' + b'new_filename')
> 		os.rename( old_path, new_path )

a) there are two syntax errors, you have spurious close brackets there
b) you are basically assigning *constant* expressions to both variables,
   most probably not what you meant

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.




More information about the Python-list mailing list