Replies: 1 comment
-
Tagging @alliscode |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I am using Python and I add plugins through directories because I need to use
nativecli
for RPC calls in various Managers. I would like to know if it is possible to setself.nativecli
directly for all classes in theNativePlugin
using the following approach:Current Implementation
Here is an example of how I am currently initializing the
WeatherManager
class withinNativePlugin
:And this is how I am adding the plugin:
Proposed Simplification
I would like to simplify the above approach by using a wildcard to set
self.nativecli
for all classes inNativePlugin
. Here is the proposed implementation:Question
Is the proposed wildcard approach feasible for setting
self.nativecli
for all classes inNativePlugin
? If not, do you have any better suggestions for achieving this simplification?Thank you for your assistance!
🙇
Beta Was this translation helpful? Give feedback.
All reactions