pymensago/userprofile.py
def load_config(self) -> RetVal:
		'''Loads the config file for the profile
		
		Returns:
		  * no additional fields
		'''

		config_path = os.path.join(self.path, 'config.json')
		if os.path.exists(config_path):
			filedata = dict()
			with open(config_path, 'r') as fhandle:
				try:
					filedata = json.load(fhandle)
				except Exception as e:
					return RetVal().wrap_exception(e)
			status = self.devid.set(filedata['Device-ID'])
			if not status:
				self.devid.generate()
		else:
			return RetVal(ErrNotFound, 'profile config file missing')
		
		return RetVal()
Loads the config file for the profile
		
		Returns:
		  * no additional fields
		
Loads the config file for the profile
Loads the config file for the profile
def load_config(self) -> RetVal:
		config_path = os.path.join(self.path, 'config.json')
		if os.path.exists(config_path):
			filedata = dict()
			with open(config_path, 'r') as fhandle:
				try:
					filedata = json.load(fhandle)
				except Exception as e:
					return RetVal().wrap_exception(e)
			status = self.devid.set(filedata['Device-ID'])
			if not status:
				self.devid.generate()
		else:
			return RetVal(ErrNotFound, 'profile config file missing')
		return RetVal()
def load_config ( self ) -> RetVal : config_path = os . path . join ( self . path , 'config.json' ) if os . path . exists ( config_path ) : filedata = dict ( ) with open ( config_path , 'r' ) as fhandle : try : filedata = json . load ( fhandle ) except Exception as e : return RetVal ( ) . wrap_exception ( e ) status = self . devid . set ( filedata [ 'Device-ID' ] ) if not status : self . devid . generate ( ) else : return RetVal ( ErrNotFound , 'profile config file missing' ) return RetVal ( )
Loads the config file for the profile
Loads the config file for the profile
'''Loads the config file for the profile
		
		Returns:
		  * no additional fields
		'''
no additional fields
no additional fields
self