Problems with path

hamido hamido at tmsk.itm.edu.my
Wed Aug 6 06:23:32 EDT 2003


Hi
Why this statement will generate errors

 shutil.copy2("c:\hamido.sql", "c:\ali1.ali")
 shutil.copy2('c:\hamido.sql', 'c:\ali1.ali')

-------------------
Error
Traceback (most recent call last):
  File "<pyshell#20>", line 1, in ?
    shutil.copy2("c:\hamido.sql", "c:\ali1.ali")
  File "C:\PYTHON23\lib\shutil.py", line 82, in copy2
    copyfile(src, dst)
  File "C:\PYTHON23\lib\shutil.py", line 38, in copyfile
    fdst = open(dst, 'wb')
IOError: [Errno 2] No such file or directory: 'c:\x07li1.ali'

-------------------------------------------
TQ








More information about the Python-list mailing list