From: Ben Limmer Date: Sat, 13 Jul 2013 22:08:31 +0000 (-0600) Subject: Added back instructions for Windows users on where to move their hosts file to. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4b8995a9afe261f6a2ce55be00a565da29f78718;p=stevenblack-hosts.git Added back instructions for Windows users on where to move their hosts file to. Resolves #5. I'm opening a new issue for adding this for Windows. --- diff --git a/updateHostsFile.py b/updateHostsFile.py index 5c1ac9a49..ead65d969 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -208,6 +208,10 @@ def moveHostsFileIntoPlace(finalFile): else: if(subprocess.call(["/usr/bin/sudo", "/etc/rc.d/init.d/nscd", "restart"])): printFailure("Flushing the DNS Cache failed.") + else if (os.name == 'nt'): + print 'Automatically moving the hosts file in place is not yet supported.' + print 'Please move the generated file to %SystemRoot%\system32\drivers\etc\hosts' + # End File Logic # Helper Functions