From: funilrys Date: Mon, 24 Feb 2020 17:34:08 +0000 (+0100) Subject: Fix backslashes issue under Windows. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=aa4a0f7a462a5f7e7ce37422acfdf5de80430def;p=stevenblack-hosts.git 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. --- diff --git a/updateHostsFile.py b/updateHostsFile.py index 3cce97a72..89e70c944 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -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(