From: Guillaume Pellerin Date: Mon, 25 Nov 2013 16:57:52 +0000 (+0100) Subject: bugfix X-Git-Tag: 1.5.0rc3~40 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f64c32e16f78b1e7469ef2904dbc00ea5a79912e;p=telemeta.git bugfix --- diff --git a/telemeta/management/commands/telemeta-crem-import.py b/telemeta/management/commands/telemeta-crem-import.py index cbee7183..8eacf495 100644 --- a/telemeta/management/commands/telemeta-crem-import.py +++ b/telemeta/management/commands/telemeta-crem-import.py @@ -61,10 +61,11 @@ class Command(BaseCommand): """ help = "import CREM collections" - args = 'options project_dir source_dir pattern log_file domain' + args = 'options source_dir pattern log_file' admin_email = 'webmaster@parisson.com' - def write_file(self, item, wa filename = wav_file.split(os.sep)[-1] + def write_file(self, item, wave_file): + filename = wav_file.split(os.sep)[-1] if os.path.exists(wav_file): if (not item.file and not '--no-write' in self.options) or '--overwrite' in self.options: f = open(wav_file, 'r')