fix for checking paths in waiter
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 14 May 2012 09:25:03 +0000 (11:25 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 14 May 2012 09:25:03 +0000 (11:25 +0200)
apps/waiter/settings.py

index fef4a7e..08e88d3 100644 (file)
@@ -1,10 +1,10 @@
-from os.path import join
+from os.path import abspath, join
 from django.conf import settings
 
 try:
-    WAITER_ROOT = settings.WAITER_ROOT
+    WAITER_ROOT = abspath(settings.WAITER_ROOT)
 except AttributeError:
-    WAITER_ROOT = join(settings.MEDIA_ROOT, 'waiter')
+    WAITER_ROOT = abspath(join(settings.MEDIA_ROOT, 'waiter'))
 
 try:
     WAITER_URL = settings.WAITER_URL