Updating all sources: add recursive=True to the call to glob()
authorSteven Black <redacted>
Sun, 18 Dec 2016 22:55:55 +0000 (17:55 -0500)
committerSteven Black <redacted>
Sun, 18 Dec 2016 22:55:55 +0000 (17:55 -0500)
updateHostsFile.py

index 0e9e307803b607edbf9a591df4754ee35dded9f0..3c66dcb9fb64fa46fa5553a8dde481908cbaf628 100644 (file)
@@ -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)
git clone https://git.99rst.org/PROJECT