mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #1581 from georgevreilly/win-fixes
Fix Pelican rendering and unit tests on Windows.
This commit is contained in:
commit
bfbb7d4bb5
14 changed files with 104 additions and 52 deletions
|
|
@ -598,7 +598,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