From: Guillaume Pellerin Date: Sun, 20 Jul 2014 10:40:22 +0000 (+0200) Subject: fix X-Git-Tag: 1.1~377 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6557c3a0e5a6a15074ffa1eae4eb140115446da1;p=teleforma.git fix --- diff --git a/teleforma/management/commands/teleforma-exam-submit-scripts.py b/teleforma/management/commands/teleforma-exam-submit-scripts.py index 2c74e2fb..e4b62bb8 100644 --- a/teleforma/management/commands/teleforma-exam-submit-scripts.py +++ b/teleforma/management/commands/teleforma-exam-submit-scripts.py @@ -33,7 +33,7 @@ class Command(BaseCommand): for script in Script.objects.filter(status=2): logger.logger.info(script.title) if script.file: - if os.path.exists(script.file): + if os.path.exists(script.file.path): script.fix_filename() try: script.submit()