1
0
Fork 0
forked from github/pelican

always return Unix-like relative paths, even on Windows

This commit is contained in:
Guillermo López 2012-09-04 00:29:02 +02:00
commit 77a538e588

View file

@ -202,6 +202,10 @@ class Writer(object):
os.sep.join((get_relative_path(name), "static",
relative_path)))
# On Windows, make sure we end up with Unix-like paths.
if os.name == 'nt':
dest_path = dest_path.replace('\\', '/')
return m.group('markup') + m.group('quote') + dest_path \
+ m.group('quote')