Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changes to make Hyde run on Windows systems.

  • Loading branch information...
commit bf9d2e42f3734fc34593111a2ee40d8193978b89 1 parent 7bbbba4
Tom Bell authored
Showing with 7 additions and 3 deletions.
  1. +4 −2 hydeengine/siteinfo.py
  2. +3 −1 hydeengine/url.py
View
6 hydeengine/siteinfo.py
@@ -368,7 +368,8 @@ def target_folder(self):
@property
def temp_folder(self):
temp_folder = self.site.temp_folder
- return temp_folder.child_folder_with_fragment(self.url)
+ # return temp_folder.child_folder_with_fragment(self.url)
+ return temp_folder.child_folder_with_fragment(self.fragment)
@property
def fragment(self):
@@ -432,7 +433,8 @@ def target_folder(self):
@property
def temp_folder(self):
temp_folder = self.site.temp_folder
- return temp_folder.child_folder_with_fragment(self.url)
+ # return temp_folder.child_folder_with_fragment(self.url)
+ return temp_folder.child_folder_with_fragment(self.fragment)
class SiteInfo(SiteNode):
def __init__(self, settings, site_path):
View
4 hydeengine/url.py
@@ -2,6 +2,7 @@
Utility functions for dealing with urls.
"""
+import sys
def join(parent, child):
"""
@@ -19,6 +20,8 @@ def fixslash(url, relative=True):
otherwise ensures it is not.
"""
+ if sys.platform == 'win32':
+ url = url.replace('\\', '/')
url = url.strip("/")
if relative:
url = "/" + url
@@ -31,7 +34,6 @@ def clean_url(url):
Removes .html from the url if it exists.
"""
-
parts = url.rsplit(".", 1)
if parts[1] == "html":
return parts[0]
Please sign in to comment.
Something went wrong with that request. Please try again.