mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix Pelican rendering and unit tests on Windows.
* Fix {filename} links on Windows.
Otherwise '{filename}/foo/bar.jpg' doesn't work
* Clean up relative Posix path handling in contents.
* Use Posix paths in readers
* Environment for Popen must be strs, not unicodes.
* Ignore Git CRLF warnings.
* Replace CRLFs with LFs in inputs on Windows.
* Fix importer tests
* Fix test_contents
* Fix one last backslash in paginated output
* Skip the remaining failing locale tests on Windows.
* Document the use of forward slashes on Windows.
* Add some Fabric and ghp-import notes
This commit is contained in:
parent
a740f8aa88
commit
4c25610cd8
14 changed files with 104 additions and 52 deletions
|
|
@ -588,7 +588,8 @@ def download_attachments(output_path, urls):
|
|||
filename = path.pop(-1)
|
||||
localpath = ''
|
||||
for item in path:
|
||||
localpath = os.path.join(localpath, item)
|
||||
if sys.platform != 'win32' or ':' not in item:
|
||||
localpath = os.path.join(localpath, item)
|
||||
full_path = os.path.join(output_path, localpath)
|
||||
if not os.path.exists(full_path):
|
||||
os.makedirs(full_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue