Skip to content
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

Add missing import os in const.py #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mathroc
Copy link

@mathroc mathroc commented Nov 12, 2022

Fix this issue:

2022-11-12 22:51:33.670 T:6774    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'NameError'>
                                                   Error Contents: name 'os' is not defined
                                                   Traceback (most recent call last):
                                                     File "/home/pi/.kodi/addons/plugin.program.AEL.dev/addon.py", line 18, in <module>
                                                       import resources.main
                                                     File "/home/pi/.kodi/addons/plugin.program.AEL.dev/resources/main.py", line 20, in <module>
                                                       import resources.const as const
                                                     File "/home/pi/.kodi/addons/plugin.program.AEL.dev/resources/const.py", line 45, in <module>
                                                       is_android_bool = _aux_is_android()
                                                     File "/home/pi/.kodi/addons/plugin.program.AEL.dev/resources/const.py", line 41, in _aux_is_android
                                                       return 'ANDROID_ROOT' in os.environ or 'ANDROID_DATA' in os.environ or 'XBMC_ANDROID_APK' in os.environ
                                                   NameError: name 'os' is not defined
                                                   -->End of Python script error report<--

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.

1 participant