2018-04-25, 17:25
(2018-04-25, 11:56)peak3d Wrote: [ -> ]- arguments passed from kodi to addon are only available in default script, you can not use sys.argv[1] in any submodules.That breaks tons of stuff and is incompatible with python.
(2018-04-25, 11:56)peak3d Wrote: [ -> ]- arguments passed from kodi to addon are only available in default script, you can not use sys.argv[1] in any submodules.That breaks tons of stuff and is incompatible with python.
(2018-04-25, 17:25)takoi Wrote: [ -> ]> That breaks tons of stuff <-- Yes(2018-04-25, 11:56)peak3d Wrote: [ -> ]- arguments passed from kodi to addon are only available in default script, you can not use sys.argv[1] in any submodules.That breaks tons of stuff and is incompatible with python.
(2018-04-25, 17:36)peak3d Wrote: [ -> ]Because the python doc/reference says sys.argv returns "The list of command line arguments passed to a Python script.". If I read what you were saying correctly, it no longer does that. Libraries like xbmcswift and script.module.routing access sys.argv by design, so everything using those would break.(2018-04-25, 17:25)takoi Wrote: [ -> ]> That breaks tons of stuff <-- Yes(2018-04-25, 11:56)peak3d Wrote: [ -> ]- arguments passed from kodi to addon are only available in default script, you can not use sys.argv[1] in any submodules.That breaks tons of stuff and is incompatible with python.
> incompatible with python <-- why?
It is no secret that the initial idea of kodi python addon system only reloads the initial file and rest is cached.
Only issue is that is hat not worked so far.
Edit the PR is already 2 days in milhouse builds.
Until now 2 addons are known which fail, most stuff is working (requests in kodinerds forum)
(2017-01-04, 18:26)ronie Wrote: [ -> ]Please keep this thread clean. It should be an easy overview for python coders who are updating their addon for Kodi Krypton.
For discussions / feature requests / bugreports, please find (or create) the appropriate thread in the addon development forum.