Fix backslashes issue under Windows.

This patch fixes https://github.com/StevenBlack/hosts/pull/1165#issuecomment-590111613.

This patch simply, replace the `\` Windows directory separator, with the
universal `/` of the web convention.
This commit is contained in:
funilrys
2020-02-24 18:34:08 +01:00
parent dc51c546be
commit aa4a0f7a46

View File

@@ -1071,7 +1071,7 @@ def write_opening_header(final_file, **header_params):
final_file,
"# Fetch the latest version of this file: "
"https://raw.githubusercontent.com/StevenBlack/hosts/master/"
+ path_join_robust(header_params["outputsubfolder"], "")
+ path_join_robust(header_params["outputsubfolder"], "").replace("\\", "/")
+ "hosts\n",
)
write_data(