Beginner question:
I am trying to rename .png files using:
import os
os.rename('x.png','y.png')
The error I get is:
WindowsError: [Error 2] The system cannot find the file specified.
I am in the right directory, and so are the files.The strange this is, if I manually rename the file (for example to 'h.png') and use that variable name in the rename command, it does work.
I am confused...