Merge pull request #949 from grez911/master

fix incorrect variable order in file_path.replace
This commit is contained in:
ZeroNet 2017-05-24 18:57:36 +02:00 committed by GitHub
commit 5d6169c232

View file

@ -85,7 +85,7 @@ def merge(merged_path):
return False # No coffeescript compiler, skip this file
# Replace / with os separators and escape it
file_path_escaped = helper.shellquote(file_path.replace(os.path.sep, "/"))
file_path_escaped = helper.shellquote(file_path.replace("/", os.path.sep))
if "%s" in config.coffeescript_compiler: # Replace %s with coffeescript file
command = config.coffeescript_compiler % file_path_escaped