pymensago/userprofile.py
def save_config(self) -> RetVal:
		'''Saves the profile-specific configuration information to a file

		Returns:
		  * no additional fields
		'''
		
		if self.devid.is_empty():
			return RetVal()
		
		config_path = os.path.join(self.path, 'config.json')
		if os.path.exists(config_path):
			try:
				os.unlink(config_path)
			except Exception as e:
				return RetVal().wrap_exception(e)
		
		filedata = { 'Device-ID': self.devid.as_string() }
		with open(config_path, 'w') as fhandle:
			try:
				filedata = json.dump(filedata, fhandle)
			except Exception as e:
				return RetVal().wrap_exception(e)
		
		return RetVal()
Saves the profile-specific configuration information to a file

		Returns:
		  * no additional fields
		
Saves the profile-specific configuration information to a file
Saves the profile - specific configuration information to a file
def save_config(self) -> RetVal:
		if self.devid.is_empty():
			return RetVal()
		config_path = os.path.join(self.path, 'config.json')
		if os.path.exists(config_path):
			try:
				os.unlink(config_path)
			except Exception as e:
				return RetVal().wrap_exception(e)
		filedata = { 'Device-ID': self.devid.as_string() }
		with open(config_path, 'w') as fhandle:
			try:
				filedata = json.dump(filedata, fhandle)
			except Exception as e:
				return RetVal().wrap_exception(e)
		return RetVal()
def save_config ( self ) -> RetVal : if self . devid . is_empty ( ) : return RetVal ( ) config_path = os . path . join ( self . path , 'config.json' ) if os . path . exists ( config_path ) : try : os . unlink ( config_path ) except Exception as e : return RetVal ( ) . wrap_exception ( e ) filedata = { 'Device-ID' : self . devid . as_string ( ) } with open ( config_path , 'w' ) as fhandle : try : filedata = json . dump ( filedata , fhandle ) except Exception as e : return RetVal ( ) . wrap_exception ( e ) return RetVal ( )
Saves the profile-specific configuration information to a file
Saves the profile - specific configuration information to a file
'''Saves the profile-specific configuration information to a file

		Returns:
		  * no additional fields
		'''
no additional fields
no additional fields
self