MCPcopy Index your code
hub / github.com/PokemonGoF/PokemonGo-Bot / get_local_destination

Method get_local_destination

pokemongo_bot/plugin_loader.py:80–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

78 return file.read().strip()
79
80 def get_local_destination(self):
81 parts = self.plugin_parts
82 if parts is None:
83 raise Exception('Not a valid github plugin')
84
85 file_name = '{}_{}_{}.zip'.format(parts['user'], parts['repo'], parts['sha'])
86 full_path = os.path.join(self.PLUGINS_FOLDER, file_name)
87 return full_path
88
89 def is_already_installed(self):
90 file_path = self.get_plugin_folder()

Callers 4

extractMethod · 0.95
downloadMethod · 0.95
test_extractMethod · 0.95

Calls

no outgoing calls

Tested by 2

test_extractMethod · 0.76