forked from github/pelican
always return Unix-like relative paths, even on Windows
This commit is contained in:
parent
c02926e2ad
commit
77a538e588
1 changed files with 4 additions and 0 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue