‘Tuple’ Object Has No Attribute ‘Replace’

python

I got the, ” ‘Tuple’ Object Has No Attribute ‘Replace’ ” error when trying to rename some file paths using python 2.x. This is because the os.walk(dst) returns an array of tuples. Accessing the first element in this tuple can solve the error. I was initially doing the following. dir in this case is the … Read more‘Tuple’ Object Has No Attribute ‘Replace’