Problems with path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hamido

    Problems with path

    Hi
    Why this statement will generate errors

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

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

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




Working...