]> git.parisson.com Git - teleforma.git/commitdiff
fix
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 20 Jul 2014 10:40:22 +0000 (12:40 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 20 Jul 2014 10:40:22 +0000 (12:40 +0200)
teleforma/management/commands/teleforma-exam-submit-scripts.py

index 2c74e2fb1b454a0b79854bd2e72264e10ab00ad9..e4b62bb82481ac9170cb4af3a5b690992ef8749b 100644 (file)
@@ -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()