forked from Mirrors/apostrophe
Fix file paths
`path_to_file`'s argument is an absolute path, which already contains a leading `/`. Having an additional slash (ie. `file:////some/path`) actually breaks things, eg. the export flow using local assets.github/fork/yochananmarqos/patch-1
parent
b9e2720eed
commit
e39694571d
|
@ -55,7 +55,7 @@ def get_builder(builder_file_name):
|
|||
def path_to_file(path):
|
||||
"""Return a file path (file:///) for the given path"""
|
||||
|
||||
return "file:///" + path
|
||||
return "file://" + path
|
||||
|
||||
|
||||
def get_media_file(media_file_path):
|
||||
|
|
Loading…
Reference in New Issue