From 9e43b5813932f5b3bc92c8a873670f3412bad5aa Mon Sep 17 00:00:00 2001 From: Lakshmi Vyasarajan Date: Wed, 13 Apr 2011 08:33:31 +0530 Subject: [PATCH] Replaced os.sep with '/' in media and content urls for the sake of windows --- hyde/site.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hyde/site.py b/hyde/site.py index edc10a0..cbeedb5 100644 --- a/hyde/site.py +++ b/hyde/site.py @@ -2,7 +2,7 @@ """ Parses & holds information about the site to be generated. """ - +import os from hyde.exceptions import HydeException from hyde.fs import FS, File, Folder from hyde.model import Config @@ -369,14 +369,14 @@ class Site(object): Returns the content url by appending the base url from the config with the given path. """ - return Folder(self.config.base_url).child(path) + return Folder(self.config.base_url).child(path).replace(os.sep, '/') def media_url(self, path): """ Returns the media url by appending the media base url from the config with the given path. """ - return Folder(self.config.media_url).child(path) + return Folder(self.config.media_url).child(path).replace(os.sep, '/') def full_url(self, path): """