From 3768835219558d5b737d425a7e6c84ecb986c19a Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 22 Feb 2012 15:01:54 -0400 Subject: [PATCH] Add sanity check when assembling a full path --- apps/document_indexing/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/document_indexing/filesystem.py b/apps/document_indexing/filesystem.py index b29f63fb74..bf6ead9655 100644 --- a/apps/document_indexing/filesystem.py +++ b/apps/document_indexing/filesystem.py @@ -22,7 +22,7 @@ def assemble_suffixed_filename(filename, suffix=0): def assemble_path_from_list(directory_list): - return os.sep.join(directory_list) + return os.path.normpath(os.sep.join(directory_list)) def get_instance_path(index_instance):