def __init__(self, config_file='config.ini', config_section='DEFAULT'):

        # Read config_file from the root of the samples directory.
        config_file = os.path.abspath(os.path.dirname(__file__) +
                                      '/../' + config_file)

        self.config_file = config_file
        self.config_section = config_section

        self.config = configparser.ConfigParser()

        create_new_config = True
        if os.path.isfile(config_file):

            self.config.read(config_file)
            if 'server_ip' in self.config[config_section]:
                create_new_config = False

        if create_new_config:

            self._create_new_config()
import/from
dataset/ETHPy150Open ibm-security-intelligence/api-samples/modules/config.py/Config.__init__--crossover with--dataset/ETHPy150Open xraypy/xraylarch/lib/interpreter.py/Interpreter.on_importfrom