Linux KODI 15 & 16: Set variable with psycopg2? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152) +---- Thread: Linux KODI 15 & 16: Set variable with psycopg2? (/showthread.php?tid=288747) |
KODI 15 & 16: Set variable with psycopg2? - effe - 2016-08-29 Hi there, I'm modifying an old service script from kodi 15.1, used to load some video and other stuff on the screens of my restaurant. From time to time I need to update a variable set on a txt file. Now I'm trying to pick it up directly from a database on Kodi 16.1, like I do with other Python script I have, but even if Kodi doesn't show errors in log the var is not updated. Here is the snippet of the working code I used on 15.1: Code: def getVarFromFile(filename): And this is what I would like to archive in 16.1: Code: import psycopg2.extras, Loading from a txt works just on 15.1, and both script aren't working on 16.1. Here's the log. And this is the full script working on 15.1. I need some clue... Thanks, F. |