git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
c022c2b
)
Updating all sources: add recursive=True to the call to glob()
author
Steven Black
<redacted>
Sun, 18 Dec 2016 22:55:55 +0000
(17:55 -0500)
committer
Steven Black
<redacted>
Sun, 18 Dec 2016 22:55:55 +0000
(17:55 -0500)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index 0e9e307803b607edbf9a591df4754ee35dded9f0..3c66dcb9fb64fa46fa5553a8dde481908cbaf628 100644
(file)
--- 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)
git clone https://git.99rst.org/PROJECT