mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-09-24 14:20:09 +01:00
Create the output folder if it doesn't pre-exist.
This commit is contained in:
+1
-1
@@ -288,7 +288,7 @@ def removeDupsAndExcl(mergeFile):
|
||||
os.makedirs(outputPath)
|
||||
|
||||
# Another mode is required to read and write the file in Python 3
|
||||
finalFile = open(os.path.join(outputPath, 'hosts'), 'r+b')
|
||||
finalFile = open(os.path.join(outputPath, 'hosts'), 'w+')
|
||||
mergeFile.seek(0) # reset file pointer
|
||||
|
||||
hostnames = set()
|
||||
|
||||
Reference in New Issue
Block a user