Issue #91: fix - hoping this works better under windows.
authorSteven Black <redacted>
Sun, 21 Feb 2016 16:37:03 +0000 (11:37 -0500)
committerSteven Black <redacted>
Sun, 21 Feb 2016 16:37:03 +0000 (11:37 -0500)
updateHostsFile.py

index 25747bb0be66ec3baeb89a8637e5631fe2d8046d..d397f67d6fe65a309abe44a54da9b7008fec653e 100644 (file)
@@ -371,7 +371,7 @@ def removeOldHostsFile():               # hotfix since merging with an already e
     oldFilePath = os.path.join(BASEDIR_PATH, 'hosts')
     open(oldFilePath, 'a').close()        # create if already removed, so remove wont raise an error
     backupFilePath = os.path.join(BASEDIR_PATH, 'hosts-{0}'.format(time.strftime("%c")))
-    shutil.copyfile(oldFilePath, backupFilePath) # make a backup copy, marking the date in which the list was updated
+    shutil.copy(oldFilePath, backupFilePath) # make a backup copy, marking the date in which the list was updated
     os.remove(oldFilePath)
     open(oldFilePath, 'a').close()        # create new empty hostsfile
 
git clone https://git.99rst.org/PROJECT