def save(self):
if self.path is None:  <EOL><INDENT>if self.config_manager.userCodeDir is not None:<EOL><INDENT>sys.path.remove(self.config_manager.userCodeDir)<EOL>self.config_manager.userCodeDir = None<EOL>logger.info("<STR_LIT>")<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if self.path != self.config_manager.userCodeDir:<EOL><INDENT>if self.config_manager.userCodeDir is not None:<EOL><INDENT>sys.path.remove(self.config_manager.userCodeDir)<EOL><DEDENT>sys.path.append(self.path)<EOL>self.config_manager.userCodeDir = self.path<EOL>logger.info("<STR_LIT>".format(self.path))<EOL><DEDENT><DEDENT>
This function is called by the parent dialog window when the user selects to save the settings.