From ac2a06f74be986fe27c564da685474db4e062026 Mon Sep 17 00:00:00 2001 From: Steven Black Date: Sun, 18 Dec 2016 17:55:55 -0500 Subject: [PATCH] Updating all sources: add recursive=True to the call to glob() --- updateHostsFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updateHostsFile.py b/updateHostsFile.py index 0e9e30780..3c66dcb9f 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -245,7 +245,7 @@ def matchesExclusions(strippedRule): # Update Logic def updateAllSources(): # Update all hosts files regardless of folder depth - allsources = glob('*/**/' + settings["sourcedatafilename"]) + allsources = glob('*/**/' + settings["sourcedatafilename"], recursive=True) for source in allsources: updateFile = open(source, "r") updateData = json.load(updateFile)