mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-04 19:46:02 +02:00
Update updateHostsFile.py
This commit is contained in:
parent
5e08804cec
commit
46877f22c4
|
@ -270,7 +270,7 @@ def createInitialFile():
|
|||
mergeFile = tempfile.NamedTemporaryFile()
|
||||
for source in settings["sources"]:
|
||||
filename = os.path.join(settings["datapath"], source, settings["datafilenames"])
|
||||
with open(curFile, "r"):
|
||||
with open(filename, "r") as curFile:
|
||||
#Done in a cross-python way
|
||||
writeData(mergeFile, curFile.read())
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user