<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_cfg(self):
 """ parses the given config file for experiments. """

        self.cfgparser = ConfigParser()
        if not self.cfgparser.read(self.options.config):
            raise SystemExit('config file %s not found.'%self.options.config) 

        # Change the current working directory to be relative to 'experiments.cfg'
        projectDir = os.path.dirname(self.options.config)
        projectDir = os.path.abspath(projectDir)
        os.chdir(projectDir)