CC-2633: airtime-import of relative path crashes

- using copy() instead of copy2()
- copy2() causes some time issue with media monitor
This commit is contained in:
James 2011-08-03 14:45:51 -04:00
parent 5124fa67d3
commit ee943958d6
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def copy_or_move_files_to(paths, dest, flag):
destfile = dest+os.path.basename(path)
if(flag == 'copy'):
print "Copying %(src)s to %(dest)s..." % {'src':path, 'dest':destfile}
shutil.copy2(path, destfile)
shutil.copy(path, destfile)
elif(flag == 'move'):
print "Moving %(src)s to %(dest)s..." % {'src':path, 'dest':destfile}
shutil.move(path, destfile)