]> git.parisson.com Git - telemeta.git/commitdiff
fix new path
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 27 May 2015 15:57:29 +0000 (17:57 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 27 May 2015 15:57:29 +0000 (17:57 +0200)
telemeta/management/commands/telemeta-import-corpus-from-dir.py

index 23f8336b20eb9f9f20c06b7b6e91d1879d980d10..53bc85354308996096ee2078b5af28eb54d82c89 100644 (file)
@@ -148,6 +148,7 @@ class Command(BaseCommand):
                         os.rename(path, new_media_path)
                         media_file = new_media_file
                         print 'renaming: ' + media_file
+                        path = new_media_path
 
                     media_name = os.path.splitext(media_file)[0]
                     media_ext = os.path.splitext(media_file)[1][1:]