def save(self):
config = self.profiledir + '<STR_LIT>'<EOL>if not isdir(self.profiledir):<EOL><INDENT>makedirs(self.profiledir)<EOL><DEDENT>cp = SafeConfigParser()<EOL>cp.add_section('<STR_LIT>')<EOL>cp.set('<STR_LIT>', '<STR_LIT>', self.ssh_private_key)<EOL>cp.set('<STR_LIT>', '<STR_LIT>', self.ssh_public_key)<EOL>with open(config, '<STR_LIT:w>') as cfile:<EOL><INDENT>cp.write(cfile)<EOL><DEDENT>
Save profile settings into user profile directory