i want change 'a.txt' to 'b.kml'
thanks
i want change 'a.txt' to 'b.kml'
thanks
import shutil
shutil.move('a.txt', 'b.kml')
This will work to rename or move a file.
os.rename(old, new)
From http://docs.python.org/library/os.html. This really isn't hard to find...