Copying Directories in Python
<p>I am trying to copy a directory from a location to other location and i have written code for that. On executing the IDE is giving me an exception.</p>

<pre><code>import sys
import os
from Tkinter import *
from tkCommonDialog import Dialog
import shutil
import tkFileDialog
import win32com.client

win = Tk()
win.title("Copying the Dorectory to specified location")
win.geometry("600x600+200+50")
win.resizable()
class Copy:

    def __init__(self,Obj):

        la = Label(win, text = "Source Directory is",font = "verdana 12 italic bold", width = 20,fg = "Red", bg = "WHITE", )
        la.grid(row=1, column =1)
        abc = "tk_chooseDirectory"
        bu = Button(text="Source", font = "Verdana 12 italic", command= abc )
        bu.grid(row =1 , column =3)


        la1 = Label(win, text = "DestibationDirectory is",font = "verdana 12 italic bold", width = 20,fg = "Red", bg = "WHITE", )
        la1.grid(row=2, column =1)
        abc1 = "tk_chooseDirectory"
        bu1 = Button(text="Destination", font = "Verdana 12 italic", command=abc1)
        bu1.grid(row =2 , column =3)


        def start():
            shutil.copy(abc, abc1)
        bu2 = Button(text="Copy", font= "Verdana 12 bold", command =start)
        bu2.grid(row =3, column =2)

obj = Copy(win)
win.mainloop()
</code></pre>

<p>This is my code and the exception that I am facing is </p>

<pre><code>Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__
    return self.func(*args)
  File "C:\Documents and Settings\Bharath Gupta\Desktop\task.py", line 38, in start
    shutil.copy(abc, abc1)
  File "C:\Python27\lib\shutil.py", line 116, in copy
    copyfile(src, dst)
  File "C:\Python27\lib\shutil.py", line 68, in copyfile
    raise Error("`%s` and `%s` are the same file" % (src, dst))
Error: `tk_chooseDirectory` and `tk_chooseDirectory` are the same file
</code></pre>

<p>Please some one help me to get rid of the exception.</p>
