add config.py and remove config parameters from main script

This commit is contained in:
Paul 2016-01-25 14:09:13 +01:00
parent 2280b33c43
commit fe201be624
2 changed files with 2 additions and 1 deletions

1
config.py Normal file
View File

@ -0,0 +1 @@
blacklists_dir = "/home/paul/blacklists/"

View File

@ -6,8 +6,8 @@ import re
import logging import logging
import time import time
from urlparse import urlparse from urlparse import urlparse
from config import *
blacklists_dir = "/home/paul/blacklists/"
domain_files = [os.path.join(dp, f) for dp, dn, fn in os.walk(os.path.expanduser(blacklists_dir)) for f in fn if re.match(r"domains*", f)] domain_files = [os.path.join(dp, f) for dp, dn, fn in os.walk(os.path.expanduser(blacklists_dir)) for f in fn if re.match(r"domains*", f)]
def make_list(files): def make_list(files):