New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide OS and system properties to python addons #17265
base: master
Are you sure you want to change the base?
Conversation
/// @brief Returns an Os dependend system property | ||
/// | ||
/// @return value assigned to propertyName | ||
/// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add a few examples here?
it's not clear to me what 'system properties' are...
also, is this android only?
All OS? Also if addons/Python interface gets this then so should JSON API :) |
I am not sure if I'm able to review this. For the os name method, I'm wondering if it really belongs in our python API. Can't the same be achieved from the python bultin For the property method I agree with ronie. It needs better documentation to explain which properties we're trying to obtain and in which platforms the method returns usable data. I'm also not sure if ifdefing there is the best approach. Sure the implications are small but if every method did the same we end up with some sort of spaguetti. Maybe a |
i can try to explain something method This method (on android) is a sort of wrapper to query android build prop info, can be used as: If used on other type of OS, should return null value method |
@peak3d this needs a rebase |
Description
using the xbmc module 2 new functions are available:
Motivation and Context
I'm working on an addon which requires some system properties to build a token.
How Has This Been Tested?
Sample script which includes print(xbmc.getOsName())
Types of change