Added back instructions for Windows users on where to move their hosts file to.
authorBen Limmer <redacted>
Sat, 13 Jul 2013 22:08:31 +0000 (16:08 -0600)
committerBen Limmer <redacted>
Sat, 13 Jul 2013 22:08:31 +0000 (16:08 -0600)
Resolves #5. I'm opening a new issue for adding this for Windows.

updateHostsFile.py

index 5c1ac9a4982712cd24191c5121bb74ba55d0ae11..ead65d9698312732058d7f7d57303416bc17e9de 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT