You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 set self.nativecli directly for all classes in the NativePlugin using the following approach:
Current Implementation
Here is an example of how I am currently initializing the WeatherManager class within NativePlugin:
I would like to simplify the above approach by using a wildcard to set self.nativecli for all classes in NativePlugin. Here is the proposed implementation:
Is the proposed wildcard approach feasible for setting self.nativecli for all classes in NativePlugin? If not, do you have any better suggestions for achieving this simplification?
Thank you for your assistance!
🙇
The text was updated successfully, but these errors were encountered:
Discussed in #10750
Originally posted by nblog March 3, 2025
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!
🙇
The text was updated successfully, but these errors were encountered: