![]() |
|
|||||||
| XBMC Development Developers forums for XBMC related development. Programmers/Coders only! No end-user support, no bug reports, and no feature/function requests here! Please, add platform prefix for suggestions that are not platform-independent!: Thread prefixes; "[LINUX]", "[LIVE]", "[MAC]", "[WINDOWS]", and "[XBOX]" |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Oct 2003
Location: North Carolina
Posts: 4
![]() |
i noticed that a ported version of python is included in the xbmc source. this is great as python is a simple and powerful object oriented scripting language. so how is python used by xbmc? are scripts used as a part of the application or is the intent only to execute external utility scripts?
the ability to tweak scripts and see the results without recompiling and downloading to the xbox would sure be nice... |
|
|
|
|
#2 |
|
Fan
Join Date: Sep 2003
Posts: 1,972
![]() |
you can select the scripts like a program or movie and start it.
![]() too bad that i have no idea of python.
__________________
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support! read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables! |
|
|
|
|
#3 |
|
Junior Member
|
i'm really wondering the same thing. i've looked through the forums and docs on the xbmp site, and i couldn't find a definite answer.
does xbmc have a full embedded python interpreter, or is it a limited set of functionality? is there socket support? like, would i be able to build a web service / client in python? |
|
|
|
|
#4 | |||
|
Fan
Join Date: Sep 2003
Posts: 1,972
![]() |
Quote:
Quote:
Quote:
__________________
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support! read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables! |
|||
|
|
|
|
#5 |
|
Senior Member
Join Date: Oct 2003
Posts: 199
![]() |
can any of the devs give a bit more info on this? as it sounds very interesting.
how do the scripts interact with xbmc? how exactly do you execute scripts? i tried selecting a small test script in xbmc, but it didn't seem to have any effect. |
|
|
|
|
#6 | |
|
Team-XBMC Developer
Join Date: Sep 2003
Posts: 530
![]() |
first of all 'python 2.3' is embedded into xbmc and you the need to do the following to get it working
extract the directories from python.rar (cvs\xbmc\python\python.rar) to "xbmc home dir\python\" and if you want some examples you should extract scripts.rar(cvs\xbmc\scripts\scripts.rar) to "xbmc home dir\scripts\" you will now have the next directory structure in xbmc xbmc * python * * * lib * * * temp * * * www * scripts * * * medusa you execute scripts thrue the myscripts gui which is under settings->scripts. currently there is no interaction with xbmc, for example you can't see any output from the python interpreter (this will be added because it's the only way to see where the script stops when an error occours) included in scripts.rar are the next files Quote:
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first.
|
|
|
|
|
|
#7 |
|
Team-XBMC Project Manager
Join Date: Sep 2003
Location: Sweden
Posts: 10,582
![]() |
darkie, as the coder of xbmc's python interpreter can you tell us all a little more about the techical aspects behind it, things like; is it loaded into a pragma section?, is it or will it be loaded by default?, how much ram does it use?, once the python interpreter is loaded into memory will/can it be unloaded when not used anymore or is reboot nessesary?, once a python script is loaded into memory will/can it be unloaded when not running anymore?, where are you planning to take this development wise?, and how do you plan to implement it in the gui, now & later?
...and other things like that, tia
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
|
|
|
|
#8 |
|
Junior Member
|
a dream becomes to be a reality!!
yes, yes. i want develop some webservice, so dear python dev implementator tell us anything is possibile about this wonderful part ![]() it's clear that i'm excited? :d
__________________
windragz it difficult to break 2048 bit as try to find a sock at morning, it's just matter of time. |
|
|
|
|
#9 |
|
Team MediaPortal
Join Date: Sep 2003
Posts: 509
![]() |
>is it loaded into a pragma section?
yes it is >is it or will it be loaded by default? no >how much ram does it use? when loaded about 350kbyte > once the python interpreter is loaded into memory will/can it be unloaded when not used anymore no, sorry?, >once a python script is loaded into memory will/can it be unloaded when not running anymore? yes frodo
__________________
XBMC Project Founder (Retired), now head programmer of MediaPortal |
|
|
|
|
#10 | |
|
Team-XBMC Project Manager
Join Date: Sep 2003
Location: Sweden
Posts: 10,582
![]() |
Quote:
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SFV/MD5 checker inside the FTP-Server | MidKnight | XBMC Feature Suggestions | 5 | 2006-05-07 11:12 |
| Python Interpreter Development "Python Inside" | darkie | Plugin/Script (Python) Development | 42 | 2005-09-19 09:07 |
| Ive finally done it..+a little help inside | hitman_uk | XBMC for Xbox Specific Support | 0 | 2004-03-17 09:28 |
| SRT subtitles inside a 3ivX MOV | silentyl | XBMC Feature Suggestions | 6 | 2004-02-07 03:37 |
| Subtitles inside AVI is not showing | w0rd48 | XBMC Feature Suggestions | 2 | 1970-01-01 02:00 |