equal
deleted
inserted
replaced
92 p.path) |
92 p.path) |
93 |
93 |
94 (src, dst) = [os.path.join(os.getcwd(), n) |
94 (src, dst) = [os.path.join(os.getcwd(), n) |
95 for n in (p.oldpath, p.path)] |
95 for n in (p.oldpath, p.path)] |
96 |
96 |
97 print "copying %s to %s" % (src, dst) |
|
98 targetdir = os.path.dirname(dst) |
97 targetdir = os.path.dirname(dst) |
99 if not os.path.isdir(targetdir): |
98 if not os.path.isdir(targetdir): |
100 os.makedirs(targetdir) |
99 os.makedirs(targetdir) |
101 try: |
100 try: |
102 shutil.copyfile(src, dst) |
101 shutil.copyfile(src, dst) |