diff options
| author | Trent Callan <trentcalllan@yahoo.com> | 2022-09-18 22:13:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-18 22:13:45 -0700 |
| commit | 852c52c59acec7c0c26e7f7aed9e6aa80f4abe37 (patch) | |
| tree | 2aa15de60e61413d421635f24c9aab385df7ab21 /backend | |
| parent | 3136ad72edd0949626f48ab55103e79b540c7a94 (diff) | |
| download | decky-loader-852c52c59acec7c0c26e7f7aed9e6aa80f4abe37.tar.gz decky-loader-852c52c59acec7c0c26e7f7aed9e6aa80f4abe37.zip | |
Grab Plugin path from find_plugin_folder plugin name is not always folder anme (#178)v2.1.0-pre4
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/browser.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/backend/browser.py b/backend/browser.py index 6a4747f1..8e2209f1 100644 --- a/backend/browser.py +++ b/backend/browser.py @@ -48,10 +48,9 @@ class PluginBrowser: return False return True - async def _download_remote_binaries_for_plugin_with_name(self, plugin_name): + async def _download_remote_binaries_for_plugin_with_name(self, pluginBasePath): rv = False try: - pluginBasePath = path.join(self.plugin_path, plugin_name) packageJsonPath = path.join(pluginBasePath, 'package.json') pluginBinPath = path.join(pluginBasePath, 'bin') @@ -143,10 +142,10 @@ class PluginBrowser: logger.debug("Unzipping...") ret = self._unzip_to_plugin_dir(res_zip, name, hash) if ret: - ret = await self._download_remote_binaries_for_plugin_with_name(name) + plugin_dir = self.find_plugin_folder(name) + ret = await self._download_remote_binaries_for_plugin_with_name(plugin_dir) if ret: logger.info(f"Installed {name} (Version: {version})") - plugin_dir = self.find_plugin_folder(name) if name in self.loader.plugins: self.loader.plugins[name].stop() self.loader.plugins.pop(name, None) |
