On Sun, Jan 30, 2011 at 3:13 PM, ecu_jon <> wrote:
> On Jan 30, 3:55Â*pm, r <rt8...@gmail.com> wrote:
>> On Jan 30, 2:44Â*pm, ecu_jon <hayesjd...@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!
>
> what does this mean? Â*Use os.path.join(x,y, z*)
> what is the x,y,z?
See
http://docs.python.org/library/os.pa...l#os.path.join
e.g. in your case:
backupdir = os.path.join(homedir, "backup")
Cheers,
Chris