blob: f4fab709be35ebbee4d4bbe550d87abe659b999a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import configparser
class Config:
_instance = None
def __new__(cls, *args, **kwargs):
if not cls._instance:
cls._instance = super(Config, cls).__new__(
cls, *args, **kwargs)
return cls._instance
def __init__(self):
self.parser = configparser.ConfigParser()
self.parser.read('pywhoisd.conf') # Find a way not to hardcode this
|