From fd449204c1e2987bd2f05b43ab3ed03e7569f99a Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 30 Dec 2011 15:51:00 +0000 Subject: [PATCH] Fixup for epio --- examples/pygments_api/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/pygments_api/views.py b/examples/pygments_api/views.py index 884cff3af..ffea60ae3 100644 --- a/examples/pygments_api/views.py +++ b/examples/pygments_api/views.py @@ -22,6 +22,9 @@ import operator HIGHLIGHTED_CODE_DIR = os.path.join(settings.MEDIA_ROOT, 'pygments') MAX_FILES = 10 +if not os.path.exists(HIGHLIGHTED_CODE_DIR): + os.makedirs(HIGHLIGHTED_CODE_DIR) + def list_dir_sorted_by_ctime(dir): """