|
|
@@ -49,6 +49,13 @@ class GetConfig(object):
|
|
|
def proxy_getter_functions(self):
|
|
|
return self.config_file.options('ProxyGetter')
|
|
|
|
|
|
+ @LazyProperty
|
|
|
+ def host_ip(self):
|
|
|
+ return self.config_file.get('HOST','ip')
|
|
|
+
|
|
|
+ @LazyProperty
|
|
|
+ def host_port(self):
|
|
|
+ return self.config_file.get('HOST', 'port')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
gg = GetConfig()
|
|
|
@@ -57,3 +64,5 @@ if __name__ == '__main__':
|
|
|
print(gg.db_host)
|
|
|
print(gg.db_port)
|
|
|
print(gg.proxy_getter_functions)
|
|
|
+ print(gg.host_ip)
|
|
|
+ print(gg.host_port)
|