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
Gonçalo Silva 2019-05-08 03:12:59 +01:00 committed by GitHub
parent b9e2720eed
commit e39694571d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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