From f64c32e16f78b1e7469ef2904dbc00ea5a79912e Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 25 Nov 2013 17:57:52 +0100 Subject: [PATCH] bugfix --- telemeta/management/commands/telemeta-crem-import.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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') -- 2.39.5