Skip to content

remove dependency on plugin.program.autocomlplete#3

Open
scott967 wants to merge 1 commit intofinkleandeinhorn:masterfrom
scott967:fix_depends
Open

remove dependency on plugin.program.autocomlplete#3
scott967 wants to merge 1 commit intofinkleandeinhorn:masterfrom
scott967:fix_depends

Conversation

@scott967
Copy link

@scott967 scott967 commented Nov 29, 2022

Version 2.1.1 of this script introduces an implied dependency on plugin.program.autocompletion

This results in it not being backwards compatible when script.module.autocompletion is used in other scripts as a dependency -- it creates an exception in Kodi when plugin.program.autocompletion is not installed.

This PR restores compatibility by wrapping the calls to plugin.program.autocompletion in a try/except block. If plugin.program.autocompletion is not installed/enabled the except will fall back to running as it did in ver 2.0.6 and prior.

Tested in an addon which uses script.module.kutils which in turn has dependency on scritp.module.autocompletion.

@teletcl
Copy link

teletcl commented Apr 20, 2024

Sad, that nobody answered for this PR over 2 years.
Official link from Kodi site point to this author.
I also have a suggestion for improvement - https://github.com/phil65/script.module.autocompletion/issues/3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants