From: Guillaume Pellerin Date: Wed, 22 Jan 2014 13:24:54 +0000 (+0100) Subject: fix path X-Git-Tag: 1.4.6~8^2~8 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=01ba8bbb415d15fddc10c3cc578d5ca7597c6b8b;p=telemeta.git fix path --- diff --git a/telemeta/management/commands/telemeta-import-items-without-copy.py b/telemeta/management/commands/telemeta-import-items-without-copy.py index f95a91fe..5b356ceb 100644 --- a/telemeta/management/commands/telemeta-import-items-without-copy.py +++ b/telemeta/management/commands/telemeta-import-items-without-copy.py @@ -15,7 +15,7 @@ class Command(BaseCommand): collection_code = args[-2] media_dir = args[-1] - if not media_dir in settings.MEDIA_ROOT: + if not settings.MEDIA_ROOT in os.path.abspath(media_dir): sys.exit('This directory is not in the MEDIA_ROOT directory') collections = MediaCollection.objects.filter(code=collection_code)