From b5f232ccaf9a492fcbcef47f1a31930a4967543f Mon Sep 17 00:00:00 2001 From: James Date: Wed, 3 Aug 2011 15:28:40 -0400 Subject: [PATCH] CC-2633: airtime-import of relative path crashes - fixed - using copyfile() instead of copy() --- utils/airtime-import/airtime-import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/airtime-import/airtime-import.py b/utils/airtime-import/airtime-import.py index e690cfde9..caa9d71f9 100644 --- a/utils/airtime-import/airtime-import.py +++ b/utils/airtime-import/airtime-import.py @@ -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.copy(path, destfile) + shutil.copyfile(path, destfile) elif(flag == 'move'): print "Moving %(src)s to %(dest)s..." % {'src':path, 'dest':destfile} shutil.move(path, destfile)