Merge pull request #1581 from georgevreilly/win-fixes

Fix Pelican rendering and unit tests on Windows.
This commit is contained in:
Justin Mayer 2015-02-17 17:06:19 -08:00
commit bfbb7d4bb5
14 changed files with 104 additions and 52 deletions

View file

@ -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)