From 01ba8bbb415d15fddc10c3cc578d5ca7597c6b8b Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 22 Jan 2014 14:24:54 +0100 Subject: [PATCH] fix path --- .../management/commands/telemeta-import-items-without-copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5