Plug-ins and Extensibility Kodi has a built-in Python interpreter that allows users and developers to write their own scripts and plugins that run inside Kodi using it's own widgets and controls.
XMBC heeft een ingebouwde Python-interpreter die gebruikers en ontwikkelaars hun eigen scripts en plugins laat schrijven die binnen XMBC kunnen worden gebruikt met hun eigen widgets en bediening.
I didn't have the time to think through all the ways the API interactions could fail and update the script to be as robust as it could be, so instead I cheated a bit, by using launchd to poke the Python script periodically.
Ik had geen tijd om alle manieren te bedenken waarop API-interacties fout konden gaan en het script zo robuust te maken als maar mogelijk, dus daarom smokkelde ik een beetje, door launchd te gebruiken om het Pythonscript zo nu en dan wakker te schudden.
But essentially it boiled down to converting the document to plain text, splitting it into 140-character lines, and using a Python script to send out the tweets.
Maar het kwam in essentie wel neer op het omzetten van het document naar platte tekst, het opdelen in regels van 140 lettertekens en een Pythonscript gebruiken om de tweets te versturen.
I tested this script with Python 3.7.0 that was installed using OSGeo4W, but it probably also works in other versions of Python 3.
Ik heb dit script getest met Python 3.7.0 dat geïnstalleerd werd met behulp van OSGeo4W, maar het werkt waarschijnlijk ook in andere versies van Python 3.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple