From aa4a0f7a462a5f7e7ce37422acfdf5de80430def Mon Sep 17 00:00:00 2001 From: funilrys Date: Mon, 24 Feb 2020 18:34:08 +0100 Subject: [PATCH] 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. --- updateHostsFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(