From 6be3900d26a25495101de2a14a9f62b59d9b776a Mon Sep 17 00:00:00 2001 From: lian Date: Wed, 14 Jan 2015 13:42:40 +0800 Subject: [PATCH] [thumbnail] use posixpath to generate thumbnail-src --- seahub/thumbnail/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seahub/thumbnail/utils.py b/seahub/thumbnail/utils.py index 81f90c1fe41..3c0b1b0229b 100644 --- a/seahub/thumbnail/utils.py +++ b/seahub/thumbnail/utils.py @@ -1,5 +1,5 @@ -import os +import posixpath from seahub.utils import get_service_url def get_thumbnail_src(repo_id, obj_id, size): - return os.path.join(get_service_url(), "thumbnail", repo_id, - obj_id, size, '') + return posixpath.join(get_service_url(), "thumbnail", repo_id, + obj_id, size)