add config.py and remove config parameters from main script
This commit is contained in:
parent
2280b33c43
commit
fe201be624
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user