From: Guillaume Pellerin Date: Wed, 27 May 2015 15:57:29 +0000 (+0200) Subject: fix new path X-Git-Tag: 1.6a~4^2~42 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8c1371f7e387ada5a990370f66784d0c2325f34e;p=telemeta.git fix new path --- diff --git a/telemeta/management/commands/telemeta-import-corpus-from-dir.py b/telemeta/management/commands/telemeta-import-corpus-from-dir.py index 23f8336b..53bc8535 100644 --- a/telemeta/management/commands/telemeta-import-corpus-from-dir.py +++ b/telemeta/management/commands/telemeta-import-corpus-from-dir.py @@ -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:]