MCPcopy Create free account
hub / github.com/modelscope/modelscope / _get_plugins_from_file

Method _get_plugins_from_file

modelscope/utils/plugins.py:1063–1073  ·  view source on GitHub ↗

get plugins from file

(self)

Source from the content-addressed store, hash-verified

1061 return status_code, uninstall_args
1062
1063 def _get_plugins_from_file(self):
1064 """ get plugins from file
1065
1066 """
1067 logger.info(f'Loading plugins information from {self.file_path}')
1068 if os.path.exists(self.file_path):
1069 local_plugins_info_bytes = storage.read(self.file_path)
1070 local_plugins_info = json.loads(local_plugins_info_bytes)
1071 else:
1072 local_plugins_info = {}
1073 return local_plugins_info
1074
1075 def _update_plugins(
1076 self,

Callers 3

list_pluginsMethod · 0.95
update_plugins_fileMethod · 0.95

Calls 3

infoMethod · 0.80
existsMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected