mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-07 13:02:27 +02:00
Updating all sources: add recursive=True to the call to glob()
This commit is contained in:
parent
c022c2b230
commit
ac2a06f74b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user