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

Method check_if_need_env

modelscope/utils/plugins.py:1244–1248  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1242 return os.path.join(self.env_dir, 'bin', 'activate')
1243
1244 def check_if_need_env(self):
1245 if len(self.plugins) or self.allow_remote:
1246 return True
1247 else:
1248 return False
1249
1250 def create_env(self):
1251 if not os.path.exists(self.env_dir):

Callers 1

test_create_envMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_create_envMethod · 0.64