mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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",
|
os.sep.join((get_relative_path(name), "static",
|
||||||
relative_path)))
|
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 \
|
return m.group('markup') + m.group('quote') + dest_path \
|
||||||
+ m.group('quote')
|
+ m.group('quote')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue