From: Steven Black Date: Sun, 18 Dec 2016 22:55:55 +0000 (-0500) Subject: Updating all sources: add recursive=True to the call to glob() X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ac2a06f74be986fe27c564da685474db4e062026;p=stevenblack-hosts.git Updating all sources: add recursive=True to the call to glob() --- 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)