|
@@ -13,7 +13,7 @@
|
|
|
__author__ = 'JHao'
|
|
__author__ = 'JHao'
|
|
|
|
|
|
|
|
import os
|
|
import os
|
|
|
-import ConfigParser
|
|
|
|
|
|
|
+from Util.utilClass import ConfigParse
|
|
|
from Util.utilClass import LazyProperty
|
|
from Util.utilClass import LazyProperty
|
|
|
|
|
|
|
|
|
|
|
|
@@ -25,7 +25,7 @@ class GetConfig(object):
|
|
|
def __init__(self):
|
|
def __init__(self):
|
|
|
self.pwd = os.path.split(os.path.realpath(__file__))[0]
|
|
self.pwd = os.path.split(os.path.realpath(__file__))[0]
|
|
|
self.config_path = os.path.join(os.path.split(self.pwd)[0], 'config.ini')
|
|
self.config_path = os.path.join(os.path.split(self.pwd)[0], 'config.ini')
|
|
|
- self.config_file = ConfigParser.ConfigParser()
|
|
|
|
|
|
|
+ self.config_file = ConfigParse()
|
|
|
self.config_file.read(self.config_path)
|
|
self.config_file.read(self.config_path)
|
|
|
|
|
|
|
|
@LazyProperty
|
|
@LazyProperty
|