Kaydet (Commit) 8bf374b9 authored tarafından Michael Stahl's avatar Michael Stahl

wizards: FileAccess.getURL does not work on Windows

The hard-coded "/" separator causes getFileURLFromSystemPath to fail,
and it's not obvious why the URL is being converted to a system path
in the first place.

Change-Id: I06ebe6d92954c4f3c884ae6f0b327ea8a36c10a4
üst 4231274a
...@@ -303,10 +303,12 @@ class FileAccess(object): ...@@ -303,10 +303,12 @@ class FileAccess(object):
i += 1 i += 1
return url return url
def getURL(self, parentPath, childPath): def getURL(self, parentURL, childPath):
parent = self.filenameConverter.getSystemPathFromFileURL(parentPath); if len(childPath) > 0 and childPath[0] == "/":
path = parent + "/" + childPath path = parentURL + childPath
return self.filenameConverter.getFileURLFromSystemPath(parentPath, path) else:
path = parentURL + "/" + childPath
return path
def getURL1(self, path): def getURL1(self, path):
f = "/" f = "/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment