homedir, file copy

r rt8396 at gmail.com
Sun Jan 30 15:55:01 EST 2011


On Jan 30, 2:44 pm, ecu_jon <hayesjd... at yahoo.com> wrote:

> shutil.copy (homedir+"\\backup\\", homedir+"\\backup2\\")

TIP: Use os.path.join(x,y, z*)

> why is there still two \\ in the pathfor the copy command?

I always convert my paths to use a single '/' instead of '\\'. Just
makes life that much easier!




More information about the Python-list mailing list